TWINE: fixed parts of the input handling

fixed error when playing a second fla
This commit is contained in:
Martin Gerhardy
2020-10-24 16:12:55 +02:00
committed by Eugene Sandulenko
parent 1b4a8b8510
commit 3bc2c1921b
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -252,6 +252,7 @@ void FlaMovies::playFlaMovie(const char *flaName) {
_fadeOut = -1;
fadeOutFrames = 0;
file.close();
if (!file.open(fileNamePath)) {
warning("Failed to open fla movie '%s'", fileNamePath.c_str());
return;
+4 -2
View File
@@ -1009,7 +1009,9 @@ void TwinEEngine::readKeys() {
break;
}
}
#if 1
{
#else
int32 size = 0;
uint8 *keyboard = nullptr; // TODO: SDL_GetKeyState(&size);
for (int32 j = 0; j < size; j++) {
@@ -1083,7 +1085,7 @@ void TwinEEngine::readKeys() {
}
}
}
#endif
int find = 0;
bool found = false;
for (int i = 0; i < ARRAYSIZE(pressedKeyMap); i++) {