Skip to content

Add FIRST and LAST event aliases to SDL_event #13331

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

orowith2os
Copy link

This makes it easier for SDL users to offload handling of event types to different handlers, and have those handlers match on the specific event type; the event poller only has to check the ranges to know who to hand the event to.

@orowith2os
Copy link
Author

I wasn't sure on how to name the keyboard events, so I left out SDL_EVENT_KEYBOARD_FIRST and LAST. Should I name it that, and have it include everything under that section?

@slouken slouken added this to the 3.4.0 milestone Jul 11, 2025
This makes it easier for SDL users to offload handling of event types to different handlers, and have those handlers match on the specific event type; the event poller only has to check the ranges to know who to hand the event to.
@slouken
Copy link
Collaborator

slouken commented Jul 15, 2025

FYI, this failed CI and needs to be fixed before merging.

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.

2 participants