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 /textscreen | |
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 'textscreen')
-rw-r--r-- | textscreen/txt_sdl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index 895e1da0..4ff24fcf 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -445,6 +445,7 @@ 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; |