diff options
author | Simon Howard | 2009-06-11 19:41:20 +0000 |
---|---|---|
committer | Simon Howard | 2009-06-11 19:41:20 +0000 |
commit | 779a2157c0e5afe358b03c8236e88a661b35bca0 (patch) | |
tree | 8c35ab56b1540b2bf2d6c2e8ba76b5c77a30c4fb /src | |
parent | 3a4db2509420fa89c2ee940cc0998d0d614d63a5 (diff) | |
download | chocolate-doom-779a2157c0e5afe358b03c8236e88a661b35bca0.tar.gz chocolate-doom-779a2157c0e5afe358b03c8236e88a661b35bca0.tar.bz2 chocolate-doom-779a2157c0e5afe358b03c8236e88a661b35bca0.zip |
Grab the input in setup when reading a new key binding, so that Windows
CE buttons are read properly. Map buttons to PC function keys.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1594
Diffstat (limited to 'src')
-rw-r--r-- | src/i_video.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i_video.c b/src/i_video.c index c3055b5d..e0db6145 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -362,6 +362,15 @@ static int TranslateKey(SDL_keysym *sym) case SDLK_PAGEUP: return KEY_PGUP; case SDLK_PAGEDOWN: return KEY_PGDN; +#ifdef SDL_HAVE_APP_KEYS + case SDLK_APP1: return KEY_F1; + case SDLK_APP2: return KEY_F2; + case SDLK_APP3: return KEY_F3; + case SDLK_APP4: return KEY_F4; + case SDLK_APP5: return KEY_F5; + case SDLK_APP6: return KEY_F6; +#endif + default: return tolower(sym->sym); } |