1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00
pandora-box/tests/mouse-click.py

13 lines
197 B
Python
Raw Normal View History

2022-06-11 16:26:40 +02:00
#!/usr/bin/python3
2022-06-30 08:30:43 +00:00
mouse = open( "/dev/input/mice", "rb" )
2022-06-11 16:26:40 +02:00
2022-06-30 08:30:43 +00:00
def waitMouseClick():
while True:
buf = mouse.read(3)
if ((buf[0] & 0x1)==1):
break;
2022-06-11 16:26:40 +02:00
2022-06-30 08:30:43 +00:00
waitMouseClick()
2022-06-11 16:26:40 +02:00