Add files via upload

This commit is contained in:
themixray 2021-11-02 19:52:29 +03:00 committed by GitHub
parent cdadd9af36
commit 0b94717fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 88 additions and 228 deletions

View file

@ -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():