Skip to content

main: initialize the keyboard from within the video module#127

Open
mardy wants to merge 1 commit intodevkitPro:ogc-sdl-2.28from
mardy:keyboard-init
Open

main: initialize the keyboard from within the video module#127
mardy wants to merge 1 commit intodevkitPro:ogc-sdl-2.28from
mardy:keyboard-init

Conversation

@mardy
Copy link
Copy Markdown
Collaborator

@mardy mardy commented Apr 11, 2026

The keyboard is being read from OGC_PumpEvents, which is part of the video subsystem. Therefore ensure that it's initialized in that subsystem, and not in SDL_main.

This fixes a bug where an application not using our SDL main would access invalid memory areas due to the keyboard not being initialized.

The keyboard is being read from OGC_PumpEvents, which is part of the
video subsystem. Therefore ensure that it's initialized in that
subsystem, and not in SDL_main.

This fixes a bug where an application not using our SDL main would
access invalid memory areas due to the keyboard not being initialized.
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