Opened 11 years ago
Last modified 4 years ago
#2041 closed enhancement
SDL2 Support — at Initial Version
Reported by: | historic_bruno | Owned by: | |
---|---|---|---|
Priority: | Release Blocker | Milestone: | Alpha 17 |
Component: | Core engine | Keywords: | patch |
Cc: | againsttcpa84@…, Josh | Patch: |
Description
This ticket is for working on SDL2 support, which is currently in release candidate status.
Known problems:
- Text input has changed in SDL2 to better support CJK, see TextInput tutorial and this forum topic. Basically Unicode characters may take multiple key presses to generate and we're now expected to use the text input API. In particular,
SDL_Keysym.unicode
is used by all text input in the game, but that was deprecated and has now been removed in the latest RC. - Using SDL on Windows conflicts with our hardware cursor implementation. This can be fixed by using SDL2's color cursors on all platforms, provided it works, #935 has a patch for that.
- WMI shutdown crashes, moving it before SDL shutdown fixes that.
- Atlas is broken on Linux, OpenGL functions fail in the engine thread (note the GL context is created by wxWidgets in the GUI thread)
Note:
See TracTickets
for help on using tickets.