sdl2-compat
sdl2-compat copied to clipboard
An SDL2 compatibility layer that uses SDL3 behind the scenes.
not sure why it builds with SDL_JOYSTICK_DISABLED so that ./testjoystick prints: ERROR: SDL compiled without Joystick support.
[world of goo.webm](https://github.com/libsdl-org/sdl2-compat/assets/9915567/0f3563ca-4fe2-4798-9fb6-80c4a55f3438) Sometimes is missing from the start, sometimes audio works in the main menu and then disappears in the game. No such issue with `SDL_AUDIODRIVER=pulseaudio`
In SDL2, SDL_StartTextInput is running by default on "desktop" systems (basically things that aren't phones in this case?). Right now, SDL_TEXTINPUT events aren't delivered to SDL2 apps on these platforms...
[src.webm](https://github.com/libsdl-org/sdl2-compat/assets/9915567/b59bb110-1569-40e4-b171-def68c40a3b0)
[goldsrc.webm](https://github.com/libsdl-org/sdl2-compat/assets/9915567/8af6b30a-a62c-49c4-a0be-51bf6d962ade)
I've just seen [testlocale time out on ci](https://github.com/libsdl-org/sdl2-compat/actions/runs/10962823704/job/30442949392#step:14:126) (nothing to be seen on stdout). Perhaps related, a successful run of testlocale [emits errors on ci](https://github.com/libsdl-org/sdl2-compat/actions/runs/10951995571/job/30409947651#step:14:126): ``` 6: ERROR: Could not...
Running `testautomation --filter video_setWindowCenteredOnDisplay` fails on Windows. It looks like all y is offset by 20. Full test output ``` INFO: 08/06/24 21:04:51: ----- Test Case 22.24: 'video_setWindowCenteredOnDisplay' started INFO:...
In my game, I draw a menu background, and then a menu overlay with a scale up/down animation using `SDL_RenderSetScale`: ```c Rect viewport = Rect_new(CANVAS_X, CANVAS_Y, CANVAS_W, CANVAS_H); setViewport(viewport); SDL_SetRenderDrawColor(core.ren,...
This reverts https://github.com/libsdl-org/sdl2-compat/pull/378 and uses the new SDL3 integer mouse mode hint from https://github.com/libsdl-org/SDL/pull/12497 (further modified in https://github.com/libsdl-org/SDL/pull/12551) instead. I also searched GitHub for popular SDL2 apps that support fractional...
this issue can be reproduced in furnace chiptune tracker using sdl backend reproduction steps: open furnace (my device is an HP Victus-15 fb2082wm laptop) make sure you are using sdl...