-
Notifications
You must be signed in to change notification settings - Fork 63
Switch to SDL3 #1752
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
base: master
Are you sure you want to change the base?
Switch to SDL3 #1752
Conversation
Very good! Can you push it to a branch in the target repository instead so we can test it with the docker-based release script? |
Sure |
Well don't worry about it. |
I need it to be part of the deps update branch anyway. |
So I'll just cherry-pick the commit in the other PR because I need all those changes to be in the same branch for the testing to work. Pushing this branch on the target repository alone won't be enough. |
I imported that code in #1433: And added more SDL3 code to make it work on my end. |
Thx. Once it works there this pr can be closed. |
@@ -215,7 +215,7 @@ std::string KeyToString(Key key) | |||
} | |||
|
|||
int GetCharForScancode(int scancode) { | |||
int keycode = static_cast<int>(SDL_GetKeyFromScancode(Util::enum_cast<SDL_Scancode>(scancode))); | |||
int keycode = static_cast<int>(SDL_GetKeyFromScancode(Util::enum_cast<SDL_Scancode>(scancode), NULL, false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second arg is an integer type, should be 0 not NULL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDL3 seems to work better on Wayland. Some systems don't even actually use SDL2 anymore but rather a compatibility layer.
This will also require someone to update the deps packages.