Mistake that was making non-characters keys not to work after configuring keys.
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 11:20:58 +0000 (11:20 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 11:20:58 +0000 (11:20 +0000)
Anyway, we still have to fix the fact that the keys are not shown when you open Controls for the first time.

SVN-Revision: 626

src/menu.cpp

index 079e85d..e4db5a3 100644 (file)
@@ -619,7 +619,7 @@ Menu::event(SDL_Event& event)
 
       if(item[active_item].kind == MN_CONTROLFIELD)
         {
-        *item[active_item].int_p = event.key.keysym.unicode;
+        *item[active_item].int_p = event.key.keysym.sym;
         if(ch[0] != '\0')
           strcpy(item[active_item].input, ch);
         else