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

UI Infrastructure: Events #43

Closed
bryphe opened this issue Nov 14, 2018 · 1 comment
Closed

UI Infrastructure: Events #43

bryphe opened this issue Nov 14, 2018 · 1 comment

Comments

@bryphe
Copy link
Member

bryphe commented Nov 14, 2018

Right now, for our examples like AutoComplete, we just bind directly to the raw GLFW / window events.

This isn't ideal, because for things like focus management to work, we need to control the 'bubbling' of events across the node 'hierarchy'.

We should implement a handleEvent method on our Node hierarchy, and add the following event types:

  • KeyDown
  • KeyPress
  • KeyUp
  • MouseDown
  • MouseUp

These are events that we'd bubble through our node hiearchy, and then expose as handlers on the primitives / component tags.

@bryphe
Copy link
Member Author

bryphe commented Dec 27, 2018

The infrastructure for this was implemented in #117 - closing in lieu of more specific / actionable work 😄

@bryphe bryphe closed this as completed Dec 27, 2018
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