Skip to content

Commit 8cdc57d

Browse files
authored
Merge pull request #5 from relic-se/mouse_scale
Fix mouse boundary error by defining `scale` property
2 parents dbf7920 + 341fb37 commit 8cdc57d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ async def mouse_task() -> None:
842842
global selected_category, selected_application
843843
while True:
844844
if (mouse := adafruit_usb_host_mouse.find_and_init_boot_mouse()) is not None:
845+
mouse.scale = SCALE
845846
mouse.x = DISPLAY_WIDTH // 2
846847
mouse.y = DISPLAY_HEIGHT // 2
847848
mouse_group.append(mouse.tilegrid)

0 commit comments

Comments
 (0)