Parcourir la source

Enable virtual joystick support for Emscripten

Sam Lantinga il y a 1 an
Parent
commit
fa5367d379
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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