Fix Gamecontroller
This commit is contained in:
@@ -11,7 +11,7 @@ MIT
|
||||
|
||||
# ビルド方法
|
||||
```sh
|
||||
git clone git@github.com:otya128/otyaSMILEBASIC.git
|
||||
git clone --recursive https://github.com/otya128/otyaSMILEBASIC.git
|
||||
cd otyaSMILEBASIC
|
||||
dub run
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ MIT
|
||||
|
||||
# How to build
|
||||
```sh
|
||||
git clone git@github.com:otya128/otyaSMILEBASIC.git
|
||||
git clone --recursive https://github.com/otya128/otyaSMILEBASIC.git
|
||||
cd otyaSMILEBASIC
|
||||
dub run
|
||||
```
|
||||
|
||||
@@ -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();
|
||||
|
||||
2
dub.json
2
dub.json
@@ -10,5 +10,5 @@
|
||||
"buildRequirements": ["allowWarnings"],
|
||||
"targetPath": "out",
|
||||
"workingDirectory": "out",
|
||||
"copyFiles": ["SMILEBASIC/spdef.csv", "SMILEBASIC/dialogresource"]
|
||||
"copyFiles": ["SMILEBASIC/spdef.csv", "SMILEBASIC/dialogresource", "SDL_GameControllerDB/gamecontrollerdb.txt"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user