Conversation
| K_PAD0_PADDLE3, /* Xbox Elite paddle P2 */ | ||
| K_PAD0_PADDLE4, /* Xbox Elite paddle P4 */ | ||
| K_PAD0_TOUCHPAD, /* PS4/PS5 touchpad button */ | ||
|
|
There was a problem hiding this comment.
Key codes are passed to the CGame/UI API. If any mods/games added support for K_PAD0_LEFTSTICK_LEFT, etc in the menu, this change would break it. This is purely hypothetical—I don't know of such mods—but that's why these buttons were separate.
K_CONSOLE is never passed to VMs, so it's last.
There was a problem hiding this comment.
Ah I OK, I wondered what all that stuff was about. I've made a change on main to make this mapping more robust and a bit more readable, but I will also append the new buttons so they don't cause reordering.
|
By the way, icculus also ported ioq3 to SDL3. The function typedefs for casting function pointers seem cleaner in that port (for SDL_GL_GetProcAddress(), etc) . I haven't significantly reviewed either branch to have many comments about them. |
See #632.
This probably won't have an effect on ioquake3 to my knowledge. I think mouse sensitivity is already DPI-independent, and 2D scaling has always been automatically scaled according to resolution in id Tech 3 (with the exception of console text, but |
Two things I wish I'd known about before starting:
Oh well, as I say it didn't take very long anyway. It's quite spooky how similar our patches turned out, though I missed some stuff he caught and vice versa, so it's net beneficial I guess. I had a quick skim through the video. Got slight spider man meme vibes at the sound section as I think most of the code he talks about saying "oh they have done X or Y..." was originally written by... Ryan 😁. |
👍
The thing that made me suspect some pixel density shenanigans is going on is that for a given r_mode, on my high density display laptop when using SDL 3 the window appears much larger than it did under SDL 2. As I say though, I haven't looked into it in any detail, so that symptom could be something else entirely. |
ff5f3b5 to
da32da8
Compare
6fe2aa7 to
f88e713
Compare
|
What's the plan for merging this? |
|
The main blockers are doing something about gamma control and waiting for SDL packages to exist on popular Linux distros. Why do you ask? |
|
I've been updating a project I setup a decade ago and ran into some SDL2 issues in the browser. Given the SDL3 browser code has been changed substantially, I wanted to check in on the status of that before investing much time in patching up SDL2. |
This isn't ready for review yet, I'm just putting it here as a placeholder/discussion point. It's a bare minimum get it compiling and ostensibly working effort. That being said there are quite a small number of things missing:
Actually that's it, I think; surprisingly straight forward. Much easier than 1.2 -> 2.0 was.