1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-24 15:59:42 +02:00

work in progress

This commit is contained in:
dbarzin 2022-06-30 10:32:30 +02:00
parent a30aa59b19
commit 540f912c62
3 changed files with 15 additions and 4 deletions

View file

@ -1,12 +1,12 @@
#!/usr/bin/python3
mouse = open( "/dev/input/mice", "rb" )
def waitMouseClick():
mouse = open( "/dev/input/mice", "rb" )
while True:
buf = mouse.read(3)
if ((buf[0] & 0x1)==1):
break;
close(mouse)
waitMouseClick()