-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Backends: SDL3 Rename QUOTE and BACKQUOTE to APOSTROPHE and GRAVE #7580
Conversation
Thank you. I am often a bit confused by their handing backward compatibility for intermediate versions:
|
It turns out that I made a proposal to SDL following this, and they seems to be tempted by it: |
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.
It might be useful to postpone merging this PR until SDL 3.1.3 Preview is released.
No. They where very preview, so imgui master should follow sdl master.
Merged e45efa9 + 93daf23, thank you! |
To clarify a little bit more: there is no sdl3 release to be backwards compatible with yet. |
I don't fully agree IMHO |
Hi, can we get this fix in the docking branch as well please. |
Motivation
Currently building Dear ImGui with newest SDL3 cloned from SDL3 github fails because libsdl-org/SDL#9774 just got merged. That PR changed the APOSTROPHE and GRAVE keys as per SDL_Keycode:
What this PR does
This tiny PR fixes the two keys by changing QUOTE and BACKQUOTE in
imgui_impl_sdl3.cpp
to APOSTROPHE and GRAVE
Result
Before this PR I get two compilation errors (below) but after making above changes the errors are fixed.
Note
Warning
It might be useful to postpone merging this PR until SDL 3.1.3 Preview is released.
I don't think these key changes were included in 3.1.2 Preview since they were only just merged on the SDL3 github repo. But I hope this PR is at least little bit useful for those that clone SDL3 from github and in the future when SDL 3.1.3 is officially released.