diff options
author | Simon Howard | 2014-03-27 20:50:10 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-27 20:52:09 -0400 |
commit | 8a699c6ebc34dc5dd498c35a53bd88fc06f21a11 (patch) | |
tree | f653f9ea4b0ed33df235d01ec8ee373a3bb3f598 /src/i_video.c | |
parent | 2b4eb0f8fb8ffca7b4016f6e8f05c124d0ad2afc (diff) | |
download | chocolate-doom-8a699c6ebc34dc5dd498c35a53bd88fc06f21a11.tar.gz chocolate-doom-8a699c6ebc34dc5dd498c35a53bd88fc06f21a11.tar.bz2 chocolate-doom-8a699c6ebc34dc5dd498c35a53bd88fc06f21a11.zip |
Define a keyboard scan code for PrintScreen.
There is no real scan code for the PrintScreen key under DOS, but it
is convenient to be able to bind it as a screenshot key. Define a
"fake" scancode (126) to represent PrintScreen so that it can be
represented as a key binding in configuration files. Also add some
comments/notes to the scantokey[] lookup table.
This fixes #369.
Diffstat (limited to 'src/i_video.c')
-rw-r--r-- | src/i_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i_video.c b/src/i_video.c index d3f674d4..be40128f 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -480,7 +480,8 @@ static int TranslateKey(SDL_keysym *sym) case SDLK_F10: return KEY_F10; case SDLK_F11: return KEY_F11; case SDLK_F12: return KEY_F12; - + case SDLK_PRINT: return KEY_PRTSCR; + case SDLK_BACKSPACE: return KEY_BACKSPACE; case SDLK_DELETE: return KEY_DEL; |