DEADSOFTWARE

Disable accelerometer and add g_dbg_scale as option
[d2df-sdl.git] / src / game / g_main.pas
index 07d2f48007b52a75ccd1c7b3befae8dac45b1708..960eb9eeafaccd3325d119a7a042c03b5cfd796f 100644 (file)
@@ -112,6 +112,9 @@ begin
   sdlflags := SDL_INIT_JOYSTICK or SDL_INIT_TIMER or SDL_INIT_VIDEO;
  {$ENDIF}
 {$ENDIF}
+
+  SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, '0');
+
   if SDL_Init(sdlflags) < 0 then
     raise Exception.Create('SDL: Init failed: ' + SDL_GetError());