summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorKim Low <klow@gaikai.com>2017-04-04 13:32:19 -0700
committerKim Low <klow@gaikai.com>2018-09-13 10:28:17 -0700
commit0a5109d955935e16b71812ec3c25c0e63d646e19 (patch)
tree903560858ba876aac196b4418be121f314502ba8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf9fa9a63bb212e2da0c5bd114d3ee0a9a35e2e1d (diff)
Added mapping files for DualShock3 and DualShock4
All buttons and axes on DualShock3 and DualShock4 are mapped explicitly, because some Linux drivers do not map them correctly. Also, the definition of BUTTON_X/Y in Linux and Android is flipped. The most significant bit (i.e. 0x8000 and 0x8111) in the "Version" part of the filename indicates a newer Linux hid-sony driver (>=4.10 for DualShock4 and >=4.12 for DualShock3) which complies to the mapping in Linux gamepad specifications, and supports all DualShock4 features (i.e. motions sensors, touchpad). Older Linux driver which does not have the correct mapping will use the mapping files without "Version". All files with "Version_8000" and "Version_8100" are meant for Bluetooth connected DualShock3/DualShock4, and all files with "Version_8111" are meant for USB connected DualShock3/DualShock4. Test: Connect DualShock3 and DualShock4, over USB and over Bluetooth. Test: Check that the Dpad and left analog stick can be used to navigate the UI. Test: If newer Linux driver is loaded, check that the touchpad can be used to navigate the UI. Bug: 38511270 Change-Id: I5630c495af16185689bbff25943b3e2d3c93e709
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions