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. --- textscreen/txt_sdl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'textscreen/txt_sdl.c') 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; -- cgit v1.2.3