mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-24 15:59:42 +02:00
animations and fix some bugs
This commit is contained in:
parent
7d52bcdfd6
commit
db4600dadc
29 changed files with 104 additions and 106 deletions
|
@ -3,9 +3,12 @@ import os;
|
|||
|
||||
def waitMouseClick():
|
||||
mouse = open( "/dev/input/mice", "rb" )
|
||||
down = False;
|
||||
while True:
|
||||
buf = mouse.read(3)
|
||||
if ((buf[0] & 0x1)==1):
|
||||
down = True
|
||||
if (((buf[0] & 0x1)==0) and down):
|
||||
break;
|
||||
mouse.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue