# FuzeController **Repository Path**: mumumusuc/FuzeController ## Basic Information - **Project Name**: FuzeController - **Description**: 战斧F1手柄驱动(Linux/Windows) - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-07-25 - **Last Updated**: 2023-09-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FuzeController 战斧F1手柄驱动(Linux/Windows) ### PID & VID 1. USB: PID = 0x181C , VID = 0x0079 2. Bluetooth: PID = 0xA560 , VID = 0x12D1 ### HID协议 1. 按键与摇杆数据(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:RB
2 |0x00 |Buttons
0b:FUZE(hold)
1b:-
2b:MENU
3b:VIEW
4b:FUZE(release)
5b:L3
6b:R3
7b:-

* FUZE键长按约1s触发bit0,释放时触发bit4
3 |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:Idle
4 |0x00~0xFF |Left stick X
uint8
default=0x80
5 |0x00~0xFF |Left stick Y
uint8
default=0x80
6 |0x00~0xFF |Right stick X
uint8
default=0x80
7 |0x00~0xFF |Right stick Y
uint8
default=0x80
8 |0x00~0xFF |Left trigger
uint8
default=0x00
threshold=0x40
9 |0x00~0xFF |Right trigger
uint8
default=0x00
threshold=0x40
*由@[sentisk](https://github.com/sentisk)提供* 2. 震动数据(Output) > TBD ### USB/Bluetooth [USB-HID-Report](https://github.com/mumumusuc/FuzeController/blob/master/fuze_controller_hid_dump.txt) [BT-HID-Report](?)(是否和usb-hid-report一样?) ### Linux驱动 ![转为Xbox手柄使用](https://github.com/mumumusuc/FuzeController/blob/master/images/xpad.png) 测试时请使用hidinput.py,会使用Uinput创建Xbox手柄设备,使用jstest-gtk或者Steam下测试识别是否正常。 ``` // python依赖 # sudo apt install python3-pip python3-hidapi # pip3 install evdev # sudo python3 hidinput.py ``` ### Windows驱动 > TBD ### 其它 [ds4drv](https://github.com/chrippa/ds4drv)