Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement type/typelist argument for gamejs.event.get #61

Open
oberhamsi opened this issue Dec 31, 2012 · 0 comments
Open

implement type/typelist argument for gamejs.event.get #61

oberhamsi opened this issue Dec 31, 2012 · 0 comments

Comments

@oberhamsi
Copy link
Member

especially now that we have worker events, this is very handy:

  • pygame.event.get(): return Eventlist
  • gamejs.event.get(type): return Eventlist
  • gamejs.event.get(types): return Eventlist

If a type or array of types is given only those messages will be returned and removed from the queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant