On joystick devices with source class SOURCE_CLASS_JOYSTICK, the pointer coordinates specify the absolute position of the joystick axes. The joystick axis values are normalized to a range of -1.0 to 1.0 where 0.0 corresponds to the center position. More information about the set of available axes and the range of motion can be obtained using getMotionRange(int). Some common joystick axes are AXIS_X, AXIS_Y, AXIS_HAT_X, AXIS_HAT_Y, AXIS_Z and AXIS_RZ.
Refer to InputDevice for more information about how different kinds of input devices and sources represent pointer coordinates.
这段API前两句的意思不怎么明白 如果我要让坐标变成是joystick模式的 是不是要设置SOURCE_CLASS_JOYSTICK这个东西啊 不是这样的话要怎样让Motion事件产生的是joystick模式的呢!
认证0级讲师