Skip to content

Instantly share code, notes, and snippets.

@zturtleman
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save zturtleman/3972efaae7a64bafbac8 to your computer and use it in GitHub Desktop.

Select an option

Save zturtleman/3972efaae7a64bafbac8 to your computer and use it in GitHub Desktop.
SDL2 issues

NEW SDL2 X11 ISSUES SINCE 2.0.3

  • TextInput is now sent before Key event.
    • ioquake3 toggles console on both Key and TextInput events, resulting in the console staying closed. The TextInput event is ignored if last key was console, now that the order is switch it is broken. Now the console can only be opened using Shift+ESC.
    • SDL bug report
  • SDL_SetWindowGrab( SDL_window, SDL_FALSE ) does not disable grab if relative mouse mode is enabled. SDL_SetRelativeMouseMode( SDL_TRUE ).
    • ioquake3's in_nograb cvar no longer disables mouse grab.

OLDER SDL2 X11 ISSUES

  • KMOD_NUM / KMOD_CAPS is not set to system state on X11.
    • Causes problems for my ioquake3 fork (Spearmint) and ET:Legacy that wants to change key behavior based on whether numlock is enabled or disabled.
    • SDL bug report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment