Skip to content

Commit d5b6ea5

Browse files
authored
Merge pull request #74 from andreblue/main
Added hidden F codes
2 parents ad29ef9 + 45a7afc commit d5b6ea5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

adafruit_hid/keycode.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,17 @@ class Keycode:
255255
F19 = 0x6E
256256
"""Function key F19 (Mac)"""
257257

258+
F20 = 0x6F
259+
"""Function key F20"""
260+
F21 = 0x70
261+
"""Function key F21"""
262+
F22 = 0x71
263+
"""Function key F22"""
264+
F23 = 0x72
265+
"""Function key F23"""
266+
F24 = 0x73
267+
"""Function key F24"""
268+
258269
LEFT_CONTROL = 0xE0
259270
"""Control modifier left of the spacebar"""
260271
CONTROL = LEFT_CONTROL

examples/gamepad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ def __init__(self, devices):
6565
self.reset_all()
6666

6767
def press_buttons(self, *buttons):
68-
"""Press and hold the given buttons. """
68+
"""Press and hold the given buttons."""
6969
for button in buttons:
7070
self._buttons_state |= 1 << self._validate_button_number(button) - 1
7171
self._send()
7272

7373
def release_buttons(self, *buttons):
74-
"""Release the given buttons. """
74+
"""Release the given buttons."""
7575
for button in buttons:
7676
self._buttons_state &= ~(1 << self._validate_button_number(button) - 1)
7777
self._send()

0 commit comments

Comments
 (0)