Skip to content

Commit 3a72dd3

Browse files
committed
A couple tweaks
1 parent b63a241 commit 3a72dd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_cursorcontrol/cursorcontrol_cursormanager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
JOY_X_CTR = 32767.5
4545
JOY_Y_CTR = 32767.5
4646

47-
class CursorManager:
47+
class CursorManager(object):
4848
"""Simple interaction user interface interaction for Adafruit_CursorControl.
4949
5050
:param adafruit_cursorcontrol cursor: The cursor object we are using.
@@ -171,7 +171,8 @@ class DebouncedCursorManager(CursorManager):
171171
def __init__(self, cursor, debounce_interval=0.01):
172172
CursorManager.__init__(self, cursor)
173173
self._pressed = 0
174-
self._debouncer = Debouncer(lambda: bool(self._pressed & self._pad_btns['btn_a']), interval=debounce_interval)
174+
self._debouncer = Debouncer(lambda: bool(self._pressed & self._pad_btns['btn_a']),
175+
interval=debounce_interval)
175176

176177
@property
177178
def is_clicked(self):

0 commit comments

Comments
 (0)