Displaying 1 result from an estimated 1 matches for "grabmodeasync".
2011 Apr 07
0
python for game menus needing mouse but with mwo=force
...exit()
else :
print "keycode = " , keycode
start = time.time()
d = display.Display()
s = d.screen()
root = s.root
# catch keyPress events
root.change_attributes(event_mask = X.KeyPressMask)
for keycode in keys:
root.grab_key(keycode, X.AnyModifier, 1,X.GrabModeAsync, X.GrabModeAsync)
while True :
root.warp_pointer(mouse['x'],mouse['y'])
d.sync()
elapsed = (time.time() - start)
event = root.display.next_event()
handle_event(event)