SDL: Enable virtual joystick support for Emscripten

From fa5367d3791fdccaa0fe95318d280a2f5a690f8f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 21 Jun 2024 12:06:53 -0700
Subject: [PATCH] Enable virtual joystick support for Emscripten

---
 include/build_config/SDL_build_config_emscripten.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/build_config/SDL_build_config_emscripten.h b/include/build_config/SDL_build_config_emscripten.h
index a5b019e6eeccd..c994d2540a221 100644
--- a/include/build_config/SDL_build_config_emscripten.h
+++ b/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