Original topic:

Wrong keylayout mapping for Playstation DualSense Controller

(Topic created on: 10-14-2022 02:14 PM)
99 Views
muhammadalras
Beginner Level 2
Options
Community Guidelines

Wrong keylayout mapping for Playstation DualSense Controller


After updating my phone (S21 ultra ) to OneUI 4 / Android 12, I couldn't use my Playstation DualSense controller properly with the phone anymore.

Some of the keybindings for it are completely wrong. For instance, when I press "triangle" I get the action mapped to "L1" in game. "X" gives me the action for "circle", etc. Worst of all, the right analog stick axis is mapped to L2 and R2 triggers, while the L2 and R2 are mapped to right analog axis.

After investigating the issue, I've found that the keylayout file for the controller is wrong. The file is located at /system/usr/keylayout/Vendor_054c_Product_0ce6.kl

To conclude that it's wrong, I've compared the keycodes the controller generates when it's plugged in to my PC to those mapped to the file. The mismatched mappings are consistent to the faults I'm experiencing.

0 Comments