Kevin Doyon
6407881cff
Fix SDL2 compile-errors, made it work on Win64
...
.. when compiled with MSVC2012
2013-05-02 21:13:06 +02:00
Daniel Gibson
8c6e4eb38a
Add support for norwegian keyboard layout
...
via "in_kbd norwegian". It's the '|' and '§' chars (124, 167)
Fixes #33
2012-11-13 23:18:45 +01:00
Daniel Gibson
fa8f092e67
Unset key modifiers when regaining focus to unset ALT
...
There used to be a bug (discussed in #40 ), that ALT was still set after
using ALT-Tab. Thus when next pressing enter fullscreen was toggled.
This should now be fixed by unsetting the modifiers when focus is
regained (SDL_ACTIVEEVENT or SDL_WINDOWEVENT_FOCUS_GAINED).
2012-09-08 16:45:07 +02:00
dhewg
4f2f855105
Add SDL2 support in sys/events.cpp
2012-07-20 17:34:36 +02:00
dhewg
b8765ccf22
Move GrabInput() and rename to GLimp_GrabInput()
...
SDL2 supports multiple windows, and the grabbing is set per
window, so move it to sys/glimp.cpp.
2012-07-20 17:34:34 +02:00
dhewg
6dcf07974d
Cleanup GrabInput()
...
Convert to bitflags to ease moving it.
2012-07-20 17:34:34 +02:00
dhewg
0e3500b919
Accept both alt keys for alt-enter
...
Reported by Ensiform.
2012-01-19 00:22:47 +01:00
dhewg
3e066baf91
Map the right alt key
...
SDLK_RALT was missing, it is independent of SDLK_MODE.
Reported by Ensiform.
2012-01-19 00:19:51 +01:00
dhewg
8fbc629be6
Add support for spanish keyboard layouts
...
There is no keyNum_t for º or ª; catch unmapped console keys.
2012-01-05 00:21:43 +01:00
dhewg
b83868090c
Use SDL GLimp and input implementations on Windows
...
The DirectX SDK is not required anymore.
2012-01-02 15:44:40 -05:00
dhewg
cd1561ac57
Implement alt+tab for toggling fullscreen mode
2012-01-02 15:44:22 -05:00
dhewg
ba3ae581ab
Implement SDL_QUIT event
...
Shut down gracefully upon WM quit event.
2012-01-02 15:44:19 -05:00
dhewg
79aea4082f
Port Linux events to SDL
...
New CVar "in_kbd" to set the layout for the keyboard. SDL 1.2
doesn't offer any way to determine it, and we need this feature
to use the same key for toggling the console independent of the
keyboard layout.
The old "in_nograb" from the Linux backend is still supported.
2012-01-02 15:44:16 -05:00