From 8a699c6ebc34dc5dd498c35a53bd88fc06f21a11 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 27 Mar 2014 20:50:10 -0400 Subject: 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. --- src/i_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/i_video.c') 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; -- cgit v1.2.3