From cbb392fa6952a63de02adcf7ff62cc7155a7a46e Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Fri, 10 Jul 2020 16:29:17 -0700 Subject: [PATCH] frameworks/base: fix Logitech Dual Action gamepad This CL fixes mappings in Logitech Dual Action gamepad: - Swaps mappings of: A,B <--> X,Y - Back was the old "Select" button. Bug: 160637093 Bug: 27778061 Test: Manually tested by launching "Gamepad Tester" APK. Verified that A,B,X,Y and Back works as expected. Change-Id: Ic3075e274794cc38104a23db2c08513b7a1c3992 (cherry picked from commit 7601d457b6c56d983311227ff6b974b9fe3eec6d) --- data/keyboards/Vendor_046d_Product_c216.kl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/keyboards/Vendor_046d_Product_c216.kl b/data/keyboards/Vendor_046d_Product_c216.kl index 6743323d7db8c..8bc142f0cab0b 100644 --- a/data/keyboards/Vendor_046d_Product_c216.kl +++ b/data/keyboards/Vendor_046d_Product_c216.kl @@ -16,15 +16,15 @@ # Logitech Dual Action Controller # -key 0x120 BUTTON_A -key 0x123 BUTTON_B -key 0x121 BUTTON_X -key 0x122 BUTTON_Y +key 0x121 BUTTON_A +key 0x122 BUTTON_B +key 0x120 BUTTON_X +key 0x123 BUTTON_Y key 0x124 BUTTON_L1 key 0x125 BUTTON_R1 key 0x126 BUTTON_L2 key 0x127 BUTTON_R2 -key 0x128 BUTTON_SELECT +key 0x128 BACK key 0x129 BUTTON_START key 0x12a BUTTON_THUMBL key 0x12b BUTTON_THUMBR