Add files via upload
This commit is contained in:
parent
cdadd9af36
commit
0b94717fb9
6 changed files with 88 additions and 228 deletions
|
@ -1,9 +1,10 @@
|
|||
from pygwin._pg import pg as _pg
|
||||
|
||||
def isPressed(x):
|
||||
return _pg.mouse.get_pressed()[x]
|
||||
def getPressed():
|
||||
return _pg.mouse.get_pressed()
|
||||
orig = _pg.mouse.get_pressed(3)
|
||||
return {'left':orig[0],'middle':orig[1],'right':orig[2]}
|
||||
def isPressed(x):
|
||||
return getPressed()[x]
|
||||
def setPosition(x):
|
||||
_pg.mouse.set_pos(x)
|
||||
def getPosition():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue