[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] set_blocked(None) not unblocking
Can anyone lend any insight into the functioning of event.set_blocked?
This code raises an Exception on line 9, indicating that the JOYAXISMOTION event
was still blocked, the line after set_blocked(None). Do I misread the
way set_blocked works?
event.set_allowed(None)
event.set_allowed(KEYDOWN)
event.wait()
event.set_blocked(None)
if event.get_blocked(JOYAXISMOTION):
raise Exception
David