paroj / xpad

Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers
809 stars 180 forks source link

Xbox Wireless Controller - Red - Bluetooth Connection #79

Open Blackmore79 opened 7 years ago

Blackmore79 commented 7 years ago

This control have a different product Id 0x02fd and not mapping buttons correctly $ dmesg

[ 9168.713255] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:12/0005:045E:02FD.0004/input/input22 [ 9168.713586] hid-generic 0005:045E:02FD.0004: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on 00:1b:10:00:2a:ec

$ evtest /dev/input/event15: Xbox Wireless Controller Select the device event number [0-15]: 15 Input driver version is 1.0.1 Input device ID: bus 0x5 vendor 0x45e product 0x2fd version 0x903 Input device name: "Xbox Wireless Controller" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 158 (KEY_BACK) Event code 172 (KEY_HOMEPAGE) Event code 304 (BTN_SOUTH) Event code 305 (BTN_EAST) Event code 306 (BTN_C) Event code 307 (BTN_NORTH) Event code 308 (BTN_WEST) Event code 309 (BTN_Z) Event code 310 (BTN_TL) Event code 311 (BTN_TR) Event code 312 (BTN_TL2) Event code 313 (BTN_TR2) Event code 314 (BTN_SELECT) Event code 315 (BTN_START) Event code 316 (BTN_MODE) Event code 317 (BTN_THUMBL) Event code 318 (BTN_THUMBR)

Pressing the SELECT button

Event: time 1496446329.500727, -------------- SYN_REPORT ------------ Event: time 1496446329.598201, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0224 Event: time 1496446329.598201, type 1 (EV_KEY), code 158 (KEY_BACK), value 0 Event: time 1496446329.598201, -------------- SYN_REPORT ------------

Pressing the GUIDE button

Event: time 1496446343.690743, -------------- SYN_REPORT ------------ Event: time 1496446343.773217, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0223 Event: time 1496446343.773217, type 1 (EV_KEY), code 172 (KEY_HOMEPAGE), value 0 Event: time 1496446343.773217, -------------- SYN_REPORT ------------

$jstest /dev/input/js0 Driver version is 2.1.0. Joystick (Xbox Wireless Controller) has 8 axes (X, Y, Z, Rz, Gas, Brake, Hat0X, Hat0Y) and 15 buttons (BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, ?, ?, ?). Testing ... (interrupt to exit) Axes: 0: 0 1: 0 2: 0 3: 0 4:-32767 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off

atar-axis commented 6 years ago

https://github.com/atar-axis/xpadneo