File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Fruit_Jam/Fruit_Jam_PyPaint
Metro/Metro_RP2350_Memory/memory_game Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -682,8 +682,7 @@ def atexit_callback():
682682 mouse = painter .mouse
683683 if mouse .was_attached :
684684 # Typically HID devices have interfaces 0,1,2
685- # Trying 0..mouse_iface is safe and sufficient
686- for intf in range (mouse .interface + 1 ):
685+ for intf in range (3 ):
687686 if not mouse .device .is_kernel_driver_active (intf ):
688687 mouse .device .attach_kernel_driver (intf )
689688 # The keyboard buffer seems to have data left over from when it was detached
Original file line number Diff line number Diff line change @@ -313,8 +313,7 @@ def atexit_callback():
313313 if mouse_ptr .device is not None :
314314 if mouse_ptr .was_attached :
315315 # Typically HID devices have interfaces 0,1,2
316- # Trying 0..mouse_iface is safe and sufficient
317- for intf in range (mouse_ptr .interface + 1 ):
316+ for intf in range (3 ):
318317 if not mouse_ptr .device .is_kernel_driver_active (intf ):
319318 mouse_ptr .device .attach_kernel_driver (intf )
320319
You can’t perform that action at this time.
0 commit comments