paulguy / 8-retro-kbd-ctl Goto Github PK
View Code? Open in Web Editor NEWControl 8BitDo Retro Keyboard from Linux
Control 8BitDo Retro Keyboard from Linux
Dependencies: Tested on Python 3.11.8, but the most advanced feature used is probably match. pcapng (only for scan-usb-hid.py) pyudev ioctl-opt Using it: USAGE: ./8kbdctl.py [test|force|verbose]... <<command> [args]>... test - Just go through the motions but do everything except actually updating the device. The device will still be accessed to get the profile. force - Don't get the profile from the device, making all changes happen even if they would be redundant. verbose - Get a lot of extra information about what's happening. Command may be: list-in-codes - List possible codes which relate to keys on the keyboard and their names. list-out-codes - List possible codes which a key may be assigned to and their names. get-profile - Get the profile from the device. set-name <name> - Set the profile name, as a quirk of the device, setting the name to an empty string ("") will disable the profile button. set-key [<mod-key>+]<in-key> <out-key> - Set a mapping from in-key to out-key, with optional mod-key to be pressed at the same time. set-macro <in-key> <name> <repeats> [events] - Set a macro to <in-key>. <repeats> may be 0 to disable a macro, name and any events will be accepted, but ignored, except end. For each event: up|down <out-key/mod-key> <delay in milliseconds> - or - end down - Indicate a key press. up - Indicate a key release. end - Indicate the end of a macro, this is optional but necessary if additional commands are to follow. set-all-default - Restore all keys to defaults.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.