Explorar o código

checkkeys: Readded the KEYUP event test.

Ryan C. Gordon %!s(int64=10) %!d(string=hai) anos
pai
achega
423262789b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/checkkeys.c

+ 1 - 1
test/checkkeys.c

@@ -144,7 +144,7 @@ loop()
     while (SDL_PollEvent(&event)) {
         switch (event.type) {
         case SDL_KEYDOWN:
-        //case SDL_KEYUP:
+        case SDL_KEYUP:
 		    PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE);
             break;
         case SDL_TEXTINPUT: