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:
parent
a30aa59b19
commit
540f912c62
3 changed files with 15 additions and 4 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue