1
0

Fix Gamecontroller

This commit is contained in:
otya128
2017-07-04 16:55:49 +09:00
parent 6431a1a483
commit b982e423b2
4 changed files with 9 additions and 3 deletions

View File

@@ -679,6 +679,11 @@ class PetitComputer
DerelictGL.load();
DerelictGL3.load();
SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt");
for (int i = 0; i < SDL_NumJoysticks(); i++)
{
AddController(i);
}
}
catch(Throwable t)
{
@@ -787,6 +792,7 @@ class PetitComputer
renderCondition.mutex.unlock;
renderCondition.notify();
}
while(true)
{
auto profile = SDL_GetTicks();