Browse Source

Enable virtual joystick support for Emscripten

Sam Lantinga 10 months ago
parent
commit
fa5367d379
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/build_config/SDL_build_config_emscripten.h

+ 1 - 0
include/build_config/SDL_build_config_emscripten.h

@@ -163,6 +163,7 @@
 
 /* Enable various input drivers */
 #define SDL_JOYSTICK_EMSCRIPTEN 1
+#define SDL_JOYSTICK_VIRTUAL    1
 
 /* Enable various sensor drivers */
 #define SDL_SENSOR_DUMMY 1