summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2022-05-18 13:34:55 -0700
committerSiarhei Vishniakou <svv@google.com>2022-08-23 01:23:29 +0000
commit92aa9080eb1fa02c2a74841b26d565eea33aa9f1 (patch)
tree2ff6328239b7ddb3aafbf8bc0a4fbb98a0689a29 /core/java/android/inputmethodservice/InputMethodService.java
parent08990cade2d15b668e06007200803be63dace7d4 (diff)
Require CONFIG_HID_PLAYSTATION for DualSense key layout
Some olders kernels don't yet support HID_PLAYSTATION. While they are working on supporting this driver, provide this temporary solution. Before this patch, if the key layout is loaded, but there is no HID_PLAYSTATION, then the mappings on the device will be incorrect. With this patch, this key layout will not be loaded unless there is a CONFIG_HID_PLAYSTATION enabled on the device. Instead, when the main layout cannot be loaded, we make another attempt to load a fallback layout. This way, the mappings on DualSense can be correct even if the HID_PLAYSTATION module is not loaded. In this CL, the fallback layout was tested using controllerTester. Bug: 228005926 Test: tested mappings with a DualSense controller on a device that does not have CONFIG_HID_PLAYSTATION Change-Id: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions