Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ran formatting command
  • Loading branch information
andreblue committed Jul 25, 2021
commit 45a7afc1f0734b1af160a6bd7de1a6d578f71942
2 changes: 1 addition & 1 deletion adafruit_hid/keycode.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class Keycode:
"""Function key F18 (Mac)"""
F19 = 0x6E
"""Function key F19 (Mac)"""

F20 = 0x6F
"""Function key F20"""
F21 = 0x70
Expand Down
4 changes: 2 additions & 2 deletions examples/gamepad.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ def __init__(self, devices):
self.reset_all()

def press_buttons(self, *buttons):
"""Press and hold the given buttons. """
"""Press and hold the given buttons."""
for button in buttons:
self._buttons_state |= 1 << self._validate_button_number(button) - 1
self._send()

def release_buttons(self, *buttons):
"""Release the given buttons. """
"""Release the given buttons."""
for button in buttons:
self._buttons_state &= ~(1 << self._validate_button_number(button) - 1)
self._send()
Expand Down