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

Register callback to listen for input events #1

Open
Qard opened this issue Jul 1, 2014 · 0 comments
Open

Register callback to listen for input events #1

Qard opened this issue Jul 1, 2014 · 0 comments

Comments

@Qard
Copy link
Member

Qard commented Jul 1, 2014

Currently Input.h just has a condition for to handle window closing, but there is no programmatic control of input yet. I'm currently leaning toward using lambda functions that receive a struct describing input state.

I'm considering having both onKeyDown and whileKeyDown registration methods, so you can get both book-end events and or continuous-stream events. This will likely be useful for stuff like touch gestures later.

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

No branches or pull requests

1 participant