战斧F1手柄驱动(Linux/Windows)
-
USB: PID = 0x181C , VID = 0x0079
-
Bluetooth: PID = 0xA560 , VID = 0x12D1
-
按键与摇杆数据(Input)
Byte Value Note 0 0x02 ReportID 1 0x00 Buttons 0b:A
1b:B
2b:LT
3b:X
4b:Y
5b:RT
6b:LB
7b:RB2 0x00 Buttons 0b:FUZE(hold)
1b:-
2b:MENU
3b:VIEW
4b:FUZE(release)
5b:L3
6b:R3
7b:-
* FUZE键长按约1s触发bit0,释放时触发bit43 0x0F D-Pad(低4位) 0:Up
1:Up-Right
2:Right
3:Down-Right
4:Down
5:Down-Left
6:Left
7:Up-Left
F:Idle4 0x00~0xFF Left stick X uint8
default=0x805 0x00~0xFF Left stick Y uint8
default=0x806 0x00~0xFF Right stick X uint8
default=0x807 0x00~0xFF Right stick Y uint8
default=0x808 0x00~0xFF Left trigger uint8
default=0x00
threshold=0x409 0x00~0xFF Right trigger uint8
default=0x00
threshold=0x40由@sentisk提供
-
震动数据(Output)
TBD
BT-HID-Report(是否和usb-hid-report一样?)
测试时请使用hidinput.py,会使用Uinput创建Xbox手柄设备,使用jstest-gtk或者Steam下测试识别是否正常。
// python依赖
# sudo apt install python3-pip python3-hidapi
# pip3 install evdev
# sudo python3 hidinput.py
TBD