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

sokol_app.h emsc: more control over input event consumption #939

Merged
merged 8 commits into from
Jan 2, 2024

Conversation

floooh
Copy link
Owner

@floooh floooh commented Nov 16, 2023

Only on the Emscripten platform:

  • mouse and touch events are now by default passed up to the web page and can be consumed by calling sapp_consume_event() from within the event handler
  • wheel events are still always consumed (passing them up tries to scroll the webpage which looks bad even with a 100% canvas)
  • no change (yet) for keyboard event behaviour, but probably a good opportunity to tackle sokol_app.h emsc: remove hardwired key event consumption table in _sapp_emsc_key_cb() #824)

@floooh floooh changed the title sokol_app.h emsc: more control over input consumption sokol_app.h emsc: more control over input event consumption Nov 16, 2023
@floooh floooh merged commit c3ed0f9 into master Jan 2, 2024
17 of 18 checks passed
@floooh floooh deleted the sapp-emsc-consume-event branch January 2, 2024 17:43
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

Successfully merging this pull request may close these issues.

1 participant