composite-joystick
il-keebd
composite-joystick | il-keebd | |
---|---|---|
1 | 1 | |
16 | 1 | |
- | - | |
10.0 | 10.0 | |
over 1 year ago | over 1 year ago | |
Rust | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
composite-joystick
-
Configure a Raspberry Pi as a USB Device
I've done this, it's super useful. The use case for me was that I wanted to simultaneously use two joysticks with the same game, mixing their inputs together instead of just using one or the other for each axis. The behavior only ended up being possible by writing a "joystick mux" program that would accept input from multiple joysticks and then retransmit it as a gadget-mode device.
Side note, USB HID descriptors are a disaster and someone should do something about it. Even commercial devices by reputable manufacturers have broken descriptors. A tool with modern ergo and integration would probably get a surprising amount of traction.
https://github.com/saulrh/composite-joystick
il-keebd
-
Configure a Raspberry Pi as a USB Device
Going to toot my own horn a little bit here. I used this capability on this work project: https://github.com/nhsx/il-magic-scanner (long story short: use a pi camera to read ID info off a phone screen, then pretend to be a keyboard and "type" it into an attached computer). There's a spun-off standalone daemon at https://github.com/nhsx/il-keebd which handles the "pretend to be a keyboard" bit. It listens on a local socket for text, converts it to scancodes, and squirts them up to the usb host.
The keymap isn't complete by any means, but it's got enough there to be interesting.
What are some alternatives?
il-magic-scanner - Writeup of the build of a prototype phone scanner
voicetunes - Offline voice-controlled music player for Raspberry Pi
teslausb - A smart USB drive for Tesla Dashcam - extended storage, auto archive, web viewer
arduino-esp32 - Arduino core for the ESP32
ipod-gadget - iPod usb gadget for audio playback. Client app: https://github.com/oandrew/ipod