From a82f496365e24b2ea2f6c97e4c49b3dee331b2f5 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Mon, 22 Feb 2021 13:30:24 -0800 Subject: [PATCH] Add sensor axes mapping to Nintendo Switch Pro keylayout. To support Nintendo Switch Pro game controller sensors, add the sensor axes mapping to device keylayout file. Bug: 180925649 Test: Manual test with Nintendo Switch Pro controller Change-Id: I441f7efa8aed4b87c5b1ca8796d4200b806facc3 --- data/keyboards/Vendor_057e_Product_2009.kl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/keyboards/Vendor_057e_Product_2009.kl b/data/keyboards/Vendor_057e_Product_2009.kl index 3c6b11e4640cd..7491ee562b59f 100644 --- a/data/keyboards/Vendor_057e_Product_2009.kl +++ b/data/keyboards/Vendor_057e_Product_2009.kl @@ -74,3 +74,11 @@ key 0x135 BUTTON_MODE # Home key key 0x13c HOME + +# SENSORs +sensor 0x00 ACCELEROMETER X +sensor 0x01 ACCELEROMETER Y +sensor 0x02 ACCELEROMETER Z +sensor 0x03 GYROSCOPE X +sensor 0x04 GYROSCOPE Y +sensor 0x05 GYROSCOPE Z