Fix Gamecontroller
This commit is contained in:
@@ -11,7 +11,7 @@ MIT
|
|||||||
|
|
||||||
# ビルド方法
|
# ビルド方法
|
||||||
```sh
|
```sh
|
||||||
git clone git@github.com:otya128/otyaSMILEBASIC.git
|
git clone --recursive https://github.com/otya128/otyaSMILEBASIC.git
|
||||||
cd otyaSMILEBASIC
|
cd otyaSMILEBASIC
|
||||||
dub run
|
dub run
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ MIT
|
|||||||
|
|
||||||
# How to build
|
# How to build
|
||||||
```sh
|
```sh
|
||||||
git clone git@github.com:otya128/otyaSMILEBASIC.git
|
git clone --recursive https://github.com/otya128/otyaSMILEBASIC.git
|
||||||
cd otyaSMILEBASIC
|
cd otyaSMILEBASIC
|
||||||
dub run
|
dub run
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -679,6 +679,11 @@ class PetitComputer
|
|||||||
|
|
||||||
DerelictGL.load();
|
DerelictGL.load();
|
||||||
DerelictGL3.load();
|
DerelictGL3.load();
|
||||||
|
SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt");
|
||||||
|
for (int i = 0; i < SDL_NumJoysticks(); i++)
|
||||||
|
{
|
||||||
|
AddController(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch(Throwable t)
|
catch(Throwable t)
|
||||||
{
|
{
|
||||||
@@ -787,6 +792,7 @@ class PetitComputer
|
|||||||
renderCondition.mutex.unlock;
|
renderCondition.mutex.unlock;
|
||||||
renderCondition.notify();
|
renderCondition.notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
auto profile = SDL_GetTicks();
|
auto profile = SDL_GetTicks();
|
||||||
|
|||||||
2
dub.json
2
dub.json
@@ -10,5 +10,5 @@
|
|||||||
"buildRequirements": ["allowWarnings"],
|
"buildRequirements": ["allowWarnings"],
|
||||||
"targetPath": "out",
|
"targetPath": "out",
|
||||||
"workingDirectory": "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