sdlcl
sdlcl copied to clipboard
Brightness/Gamma, Numpad Keys, German Keys
Hey, thank you for this great project, I've got it compiled and running pretty nice so far with some minor issues. The game I am using is Enemy Territory Quake Wars (ETQW).
-
Brightness/Gamma I try to run the game without a Window Manager (from .xinitrc) which works with one problem: Brightness and Gamma Settings don't apply. This only happens with sdlcl, using the original sdl library works without any problem. (With a Window Manager brightness/gamma changes work but would be very nice to run it without one)
-
Numpad Keys Is there a reason to disable (most of) them? Would it possible to enable them? I saw inside the source code you commented them out but If I remove the comments it won't compile.
-
German Keys Can you add support for german keys? äÄ öÖ üÜ ß
(4. Sensitivy) I noticed sensitivty changed using this. Do you know the exact multiplier? E.g. 1.5.
Thanks a lot!
- Gamma is set using the SDL 2 functions. I guess whatever SDL 2 does doesn't work without a window manager.
- I fixed this issue (d85faa8dadc3c7d7f466565327b9f028edf6bdf8). The SDL 2 keysyms have an underscore between KP and the number while the SDL 1.2 keysyms do not. I must've missed this while going through them.
- I'll need more information about what keysyms the German keys have in SDL 1.2 and SDL 2. In general, text input should be working regardless, as SDLCL will add key events with SDLK_UNKNOWN and the corresponding Unicode values if it doesn't have a usable key event to map it to.
- If the mouse sensitivity has changed, that could be another difference between SDL 1.2 and SDL 2. One possibility is the mouse sensitivity changes on mode changes in fullscreen. SDLCL doesn't change the video mode but instead scales the video to the regular desktop size. For mouse input, it then restricts the location to the virtual window size by offsetting it by a value that changes if you go beyond the virtual borders. I've noticed that if you instead scale the mouse location, mouse sensitivity seems to be lower than it would otherwise be. I might have to revisit this.
@xk0niR Are you using Mesa drivers? Cause I detected brightness change of game when I use integrated Intel GPU with Mesa driver while using SDLCL.