From 4367bc91c065ee41eba2f0c718e576808e9a59dd Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 4 Mar 2012 14:35:35 +0000 Subject: update from ICS 4.0.0 Revolver, actually --- keylayout/Vendor_045e_Product_028e.kl | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'keylayout/Vendor_045e_Product_028e.kl') diff --git a/keylayout/Vendor_045e_Product_028e.kl b/keylayout/Vendor_045e_Product_028e.kl index 99f046a..cdbdca3 100644 --- a/keylayout/Vendor_045e_Product_028e.kl +++ b/keylayout/Vendor_045e_Product_028e.kl @@ -15,20 +15,25 @@ # # XBox 360 USB Controller # +# NVIDIA Normalized Gamepad -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 314 BUTTON_SELECT -key 315 BUTTON_START -key 316 BUTTON_MODE -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR +key 0x130 BUTTON_A +key 0x131 BUTTON_B +key 0x133 BUTTON_X +key 0x134 BUTTON_Y +# Button "LB" maps to BUTTON_L1. +key 0x136 BUTTON_L1 +# Button "RB" maps to BUTTON_R1. +key 0x137 BUTTON_R1 +key 0x13a BACK +key 0x13b BUTTON_START +# Button with Xbox logo maps to HOME. +key 0x13c HOME +# These two keycodes are for click (press from above) on analog control sticks. +key 0x13d BUTTON_THUMBL +key 0x13e BUTTON_THUMBR -# Left and right stick. +# Left (0x00, 0x01) and right (0x03, 0x04) analog control stick. # The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd. # This confuses applications that rely on the flat value because the joystick actually # settles in a flat range of +/- 4096 or so. @@ -38,9 +43,12 @@ axis 0x03 Z flat 4096 axis 0x04 RZ flat 4096 # Triggers. +# (Shoulder trigger buttons marked with "LT" and "RT" are analog. +# Each axis has range from 0 to 255.) axis 0x02 LTRIGGER axis 0x05 RTRIGGER # Hat. +# (D-pad is reported as analog. Each axis has range from -1 to 1.) axis 0x10 HAT_X axis 0x11 HAT_Y -- cgit v1.2.3