Giter Club home page Giter Club logo

fuzecontroller's Introduction

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提供

  2. 震动数据(Output)

    TBD

USB/Bluetooth

USB-HID-Report

BT-HID-Report(是否和usb-hid-report一样?)

Linux驱动

转为Xbox手柄使用

测试时请使用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

fuzecontroller's People

Contributors

mumumusuc avatar

Stargazers

 avatar  avatar  avatar  avatar Jase Su avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.