Releases: adafruit/Adafruit_CircuitPython_HID
Add Keycodes COMMAND, OPTION, and WINDOWS
Add Keycode names that correspond to Mac and Windows keyboard labels, for more obvious use without having to refer to the documentation.
- Add
Keycode.WINDOWSandKeycode.COMMANDas aliases forKeycode.GUI. - Add
Keycode.OPTIONas alias forKeycode.ALT.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-hid.
Read the docs for info on how to use it.
Now on PyPi!
- Added
setup.py - Added PyPI release info to
.travis.yml - Updated
requirements.txt - Added a more comprehensive
.gitignore
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-hid.
Read the docs for info on how to use it.
Fix documentation build
Consumer control and gamepad documentation was missing from api.rst.
To use in CircuitPython, download the .mpy file and copy it to the lib folder on the CIRCUITPY drive. Or, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Handle 16-bit ConsumerControl codes
ConsumerControl was not passing 16-bit codes properly. Thanks @zeevro!
Check for Gamepad or ConsumerControl being used on CPy < 3.0
Merge pull request #21 from zzsnzmn/check_circuitpython_version Raise ImportError if using CircuitPython < 3.
HID Gamepad support
For use with gamepad support in CircuitPython 3.0.0-alpha.6.
Fix regression on Mouse.click() and other Mouse button functions.
Merge pull request #16 from dhalbert/fix_mouse_no_move Fix Mouse bug introduced in 3.0.0
Multimedia keys (ConsumerControl); Keyboard.send(); wait for host to be ready
-
Added
ConsumerControlandConsumerControlCodeto send multimedia control requests, such as volume up/down, play/pause, etc. Many keyboards have these keys. Supported only in CircuitPython 3.0 and up. -
Added the convenience method
Keyboard.send(...), which combinesKeyboard.press(...)andKeyboard.release_all(). -
When
main.pystarts, the host may not yet have configured the HID devices. Wait for an extra second if necessary to ensure the host is ready (see issue #13).
Added an examples folder and two example .py files.
Merge pull request #9 from Sigafoos/examples Added examples for keyboard shortcuts and a mouse scrollwheel
Updated with lint and autobundling!
Thanks to @mrmcwethy for the great work!