Android: Do not use accelerometer as a joystick

This commit is contained in:
kichikuou
2022-01-29 14:15:33 +09:00
parent a89ed4ba29
commit a6cbf243c7
+2 -1
View File
@@ -129,7 +129,8 @@ void sdl_setWindowTitle(char *name) {
/* Visual に応じて Window を生成する */
static void window_init(void) {
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);
#ifdef __EMSCRIPTEN__