mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 07:24:00 +00:00
Make SDL more reliable
This commit is contained in:
1 parent
abc9a19a9d
commit
05fc925c19
5 files changed
+44
-36
No files matched your search
@@ -43,8 +43,7 @@ static int keyboard_modifiers;
|
||||
void sdlinput_init() {
|
||||
memset(gamepads, 0, sizeof(gamepads));
|
||||
|
||||
//SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||
SDL_InitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER);
|
||||
SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER);
|
||||
SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt");
|
||||
|
||||
for (int i = 0; i < SDL_NumJoysticks(); ++i) {
|
||||
|
||||
Reference in new issue
Block a user