From 1625977d4d47c84cf0f5290e1e75a60394f1efb6 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 17 Apr 2012 21:34:01 +0100 Subject: Update from ICS 4.0.4 --- keylayout/Vendor_045e_Product_028e.kl | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 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 cdbdca3..99f046a 100644 --- a/keylayout/Vendor_045e_Product_028e.kl +++ b/keylayout/Vendor_045e_Product_028e.kl @@ -15,25 +15,20 @@ # # XBox 360 USB Controller # -# NVIDIA Normalized Gamepad -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 +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 -# Left (0x00, 0x01) and right (0x03, 0x04) analog control stick. +# Left and right 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. @@ -43,12 +38,9 @@ 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