Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Switch to SDL3 #1752

wants to merge 4 commits into from

Conversation

VReaperV
Copy link
Contributor

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.

@illwieckz
Copy link
Member

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?

@VReaperV
Copy link
Contributor Author

Sure

@illwieckz
Copy link
Member

Well don't worry about it.

@illwieckz
Copy link
Member

I need it to be part of the deps update branch anyway.

@illwieckz
Copy link
Member

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.

@illwieckz
Copy link
Member

I imported that code in #1433:

And added more SDL3 code to make it work on my end.

@VReaperV
Copy link
Contributor Author

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));
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants