We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0085dbd commit fa94bf3Copy full SHA for fa94bf3
adafruit_usb_host_mouse.py
@@ -174,8 +174,9 @@ def update(self):
174
Read data from the USB mouse and update the location of the visible cursor
175
and check if any buttons are pressed.
176
177
- :return: a List containing one or more of the strings "left", "right", "middle"
178
- indicating which buttons are pressed.
+ :return: a tuple containing one or more of the strings "left", "right", "middle"
+ indicating which buttons are pressed. If no buttons are pressed, the tuple will be empty.
179
+ If a error occurred while trying to read from the usb device, `None` will be returned.
180
"""
181
try:
182
# attempt to read data from the mouse
0 commit comments