Ver Fonte

Changed Emscripten entry in gamecontroller database to allow sorting by script.

Philipp Wiesemann há 10 anos atrás
pai
commit
f4dcc24698
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/joystick/SDL_gamecontrollerdb.h

+ 2 - 1
src/joystick/SDL_gamecontrollerdb.h

@@ -76,7 +76,8 @@ static const char *s_ControllerMappings [] =
 #endif
 #if defined(__ANDROID__)
     "4e564944494120436f72706f72617469,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,",
-#elif defined(SDL_JOYSTICK_EMSCRIPTEN)
+#endif
+#if defined(SDL_JOYSTICK_EMSCRIPTEN)
     "emscripten,Standard Gamepad,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,lefttrigger:b6,righttrigger:b7,back:b8,start:b9,leftstick:b10,rightstick:b11,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,guide:b16,leftx:a0,lefty:a1,rightx:a2,righty:a3,",
 #endif
     NULL