trying to play with a PS4 controller on Android. pairing the controller with my phone via Bluetooth worked by holding the PS and Share button, and selecting the controller in the Android bluetooth settings.
navigating between apps in Android homescreen already works using the controller arrow keys. in RetroArch, arrow keys also seem to work, but other keys do not.
adb logcat gives me the following:
I/EventHub( 747): New device: id=16, fd=179, path=’/dev/input/event12’, name=‘Broadcom Bluetooth HID’, classes=0x80000141, configuration=’’, keyLayout=’/system/usr/keylayout/Generic.kl’, keyCharacterMap=’/system/usr/keychars/Generic.kcm’, builtinKeyboard=false, usingSuspendBlockIoctl=true, usingClockIoctl=true I/InputReader( 747): Device added: id=16, name=‘Broadcom Bluetooth HID’, sources=0x01000511
keycodes:
cross - Pad 0 : 97, ac = 0 circle - Pad 0 : 98, ac = 0 square - Pad 0 : 96, ac = 0 triangle - Pad 0 : 99, ac = 0
L1 - Pad 0 : 100, ac = 0 R1 - Pad 0 : 101, ac = 0 L2 - Pad 0 : 102, ac = 0 R2 - Pad 0 : 103, ac = 0
left analog stick press - Pad 0 : 109, ac = 0 right analog stick press - Pad 0 : 108, ac = 0
share (= select) - Pad 0 : 104, ac = 0 options (= start) - Pad 0 : 105, ac = 0
PSbutton - Pad 0 : 110, ac = 0