From e61f416e0d64ba8a9d72971bb840fea45f7d2acc Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sun, 13 Jun 2004 19:42:48 +0000 Subject: [PATCH] Changes to make the numpad minus (and other keys) be recognised in KEYDOWN correctly This was SVN commit r502. --- source/lib/sysdep/win/wsdl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lib/sysdep/win/wsdl.cpp b/source/lib/sysdep/win/wsdl.cpp index a3751706dd..3bce09ad98 100755 --- a/source/lib/sysdep/win/wsdl.cpp +++ b/source/lib/sysdep/win/wsdl.cpp @@ -262,8 +262,8 @@ return_char: next_char_idx++; ev->type = SDL_KEYDOWN; - //ev->key.keysym.sym = (SDLKey)translated_keysym; - ev->key.keysym.sym = (SDLKey)((c < 256)? c : 0); + ev->key.keysym.sym = (SDLKey)translated_keysym; + //ev->key.keysym.sym = (SDLKey)((c < 256)? c : 0); ev->key.keysym.unicode = c; return 1; } @@ -298,7 +298,7 @@ return_char: { // Translation complete: Produce one or more Unicode chars char_buf[num_chars]=0; - ///translated_keysym=vkmap(vk); + translated_keysym=vkmap(vk); //wprintf(L"ToUnicode: Translated %02x to [%s], %d chars, SDLK %02x. Extended flag %d, scancode %d\n", vk, char_buf, num_chars, translated_keysym, msg.lParam & 0x01000000, scancode); goto return_char; }