Browse Source

testmanymouse: enable raw keyboard events on Windows

Anonymous Maarten 10 months ago
parent
commit
2018882bf2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/testmanymouse.c

+ 3 - 0
test/testmanymouse.c

@@ -507,6 +507,9 @@ int main(int argc, char *argv[])
     /* Log all events, including mouse motion */
     SDL_SetHint(SDL_HINT_EVENT_LOGGING, "2");
 
+    /* Support for multiple keyboards requires raw keyboard events on Windows */
+    SDL_SetHint(SDL_HINT_WINDOWS_RAW_KEYBOARD, "1");
+
     /* Initialize test framework */
     state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
     if (!state) {