From fd92ab321433e16d69d632e12191e28185d89fb7 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Wed, 1 Jul 2020 17:04:47 -0700 Subject: [PATCH] Change axis definition for Razer Raiju Mobile Controller. LTRIGGER and RTRIGGER need to be mapped to axis 0x0a and 0x09 for Razer Raiju Mobile Controller. Bug: 140958486 Test: atest android.hardware.input.cts.tests.RazerRaijuMobileBluetoothTest Change-Id: I1f780334c3111d69f21aa9cae96f36d281e72440 --- data/keyboards/Vendor_1532_Product_0705.kl | 11 +++++------ data/keyboards/Vendor_1532_Product_0707.kl | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/data/keyboards/Vendor_1532_Product_0705.kl b/data/keyboards/Vendor_1532_Product_0705.kl index e5afe39f3b8cf..611aaec1c26af 100644 --- a/data/keyboards/Vendor_1532_Product_0705.kl +++ b/data/keyboards/Vendor_1532_Product_0705.kl @@ -32,12 +32,6 @@ key 0x137 BUTTON_R1 key 0x138 BUTTON_L2 key 0x139 BUTTON_R2 -# L2 axis -axis 0x03 LTRIGGER -# R2 axis -axis 0x04 RTRIGGER - - # Left Analog Stick axis 0x00 X axis 0x01 Y @@ -45,6 +39,11 @@ axis 0x01 Y axis 0x02 Z axis 0x05 RZ +# L2 axis +axis 0x09 RTRIGGER +# R2 axis +axis 0x0a LTRIGGER + # Left stick click key 0x13d BUTTON_THUMBL # Right stick click diff --git a/data/keyboards/Vendor_1532_Product_0707.kl b/data/keyboards/Vendor_1532_Product_0707.kl index dec52d93d5e85..48c171468bce2 100644 --- a/data/keyboards/Vendor_1532_Product_0707.kl +++ b/data/keyboards/Vendor_1532_Product_0707.kl @@ -32,12 +32,6 @@ key 0x137 BUTTON_R1 key 0x138 BUTTON_L2 key 0x139 BUTTON_R2 -# L2 axis -axis 0x03 LTRIGGER -# R2 axis -axis 0x04 RTRIGGER - - # Left Analog Stick axis 0x00 X axis 0x01 Y @@ -45,6 +39,11 @@ axis 0x01 Y axis 0x02 Z axis 0x05 RZ +# L2 axis +axis 0x09 RTRIGGER +# R2 axis +axis 0x0a LTRIGGER + # Left stick click key 0x13d BUTTON_THUMBL # Right stick click