[C-2-2] MUST support distinct tracking of two or more independent pointer inputs.
If device implementations declare support for
android.hardware.faketouch.multitouch.jazzhand
, they:
[C-3-1] MUST declare support for
android.hardware.faketouch
.
[C-3-2] MUST support distinct tracking of 5 (tracking a hand of fingers) or more pointer
inputs fully independently.
7.2.6. Game Controller Support
7.2.6.1. Button Mappings
If device implementations declare the
android.hardware.gamepad
feature flag, they:
[C-1-1] MUST have embed a controller or ship with a separate controller in the box, that
would provide means to input all the events listed in the below tables.
[C-1-2] MUST be capable to map HID events to it's associated Android
view.InputEvent
constants as listed in the below tables. The upstream Android implementation includes
implementation for game controllers that satisfies this requirement.
Button
HID Usage
2
Android Button
A
1
0x09 0x0001
KEYCODE_BUTTON_A (96)
B
1
0x09 0x0002
KEYCODE_BUTTON_B (97)
X
1
0x09 0x0004
KEYCODE_BUTTON_X (99)
Y
1
0x09 0x0005
KEYCODE_BUTTON_Y (100)
D-pad up
1
D-pad down
1
0x01 0x0039
3
AXIS_HAT_Y
4
D-pad left
1
D-pad right
1
0x01 0x0039
3
AXIS_HAT_X
4
Left shoulder button
1
0x09 0x0007
KEYCODE_BUTTON_L1 (102)
Right shoulder button
1
0x09 0x0008
KEYCODE_BUTTON_R1 (103)
Left stick click
1
0x09 0x000E
KEYCODE_BUTTON_THUMBL (106)
Right stick click
1
0x09 0x000F
KEYCODE_BUTTON_THUMBR (107)
Home
1
0x0c 0x0223
KEYCODE_HOME (3)
Back
1
0x0c 0x0224
KEYCODE_BACK (4)
1
KeyEvent
2 The above HID usages must be declared within a Game pad CA (0x01 0x0005).
3 This usage must have a Logical Minimum of 0, a Logical Maximum of 7, a Physical Minimum of 0, a Physical
Maximum of 315, Units in Degrees, and a Report Size of 4. The logical value is defined to be the clockwise
rotation away from the vertical axis; for example, a logical value of 0 represents no rotation and the up button
being pressed, while a logical value of 1 represents a rotation of 45 degrees and both the up and left keys
being pressed.
4
MotionEvent
HID Usage
Android Button
Page 81 of 132