Code Monkey home page Code Monkey logo

input-db's Introduction

Input DB

About

A collection of dumps of device HID, DirectInput, etc. representations as well as tools and instruction on how to create them.

The goal is to aid development of Wine and Proton.

Navigating The Data

See the devices/ directory. File names in there contain the bus name, vendor and product IDs as well as the human-readable product name.

You can navigate to each section easily by clicking the "table of contents" button in the upper left corner of GitHub's Markdown preview:

github toc location

Dumping The Data

Plase dump the data on Windows and possibly Linux (some devices may report different things) and attach the files in a new issue.

Windows

Download the latest version of the tools from https://github.com/ivyl/input-db/releases select the device, and copy+paste the output in a new issue.

If it's a USB device please also attach raw HID descriptor if possible. See this guide for instructions.

Linux

You need hid-decode from the hid-tools.

Look for hidraw devices in the kernel log:

$ journalctl --dmesg --boot | grep hidraw
May 12 19:15:05 wintendo kernel: hid-generic 0003:044F:B10A.0001: input,hidraw0: USB HID v1.11 Joystick [Thrustmaster T.16000M] on usb-0000:00:14.0-4/input0
May 12 19:15:05 wintendo kernel: hid-generic 0003:044F:B687.0002: input,hidraw1: USB HID v1.11 Joystick [Thrustmaster TWCS Throttle] on usb-0000:00:14.0-5/input0

And dump the descriptor for the right hidraw device:

$ hid-decode /dev/hidraw1
0x05, 0x01,                    // Usage Page (Generic Desktop)        0
0x09, 0x04,                    // Usage (Joystick)                    2
...

If the device is not accssible by your user you may need to use sudo.

input-db's People

Contributors

ivyl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

input-db's Issues

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.