Skip to content

Commit 423a707

Browse files
authored
Assign BootMouse position property directly
1 parent 05788ad commit 423a707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
async def mouse_task() -> None:
6363
while True:
6464
if (mouse := adafruit_usb_host_mouse.find_and_init_boot_mouse("bitmaps/cursor.bmp")) is not None:
65-
mouse.tilegrid.x = display.width // 2
66-
mouse.tilegrid.y = display.height // 2
65+
mouse.x = display.width // 2
66+
mouse.y = display.height // 2
6767
root_group.append(mouse.tilegrid)
6868

6969
timeouts = 0

0 commit comments

Comments
 (0)