Fix gamepads not working, enable on Android

This commit is contained in:
elasota
2021-10-22 22:01:33 -04:00
parent 9ba15c6d78
commit 545798600e
7 changed files with 17 additions and 18 deletions

View File

@@ -5,6 +5,7 @@
#include "PLDrivers.h"
#include "IGpDisplayDriver.h"
#include "IGpInputDriver.h"
namespace PortabilityLayer
@@ -13,5 +14,9 @@ namespace PortabilityLayer
{
PLDrivers::GetDisplayDriver()->ServeTicks(ticks);
DisplayDeviceManager::GetInstance()->IncrementTickCount(ticks);
const size_t numInputDrivers = PLDrivers::GetNumInputDrivers();
for (size_t i = 0; i < numInputDrivers; i++)
PLDrivers::GetInputDriver(i)->ProcessInput();
}
}

View File

@@ -4,6 +4,7 @@
#include "BitmapImage.cpp"
#include "ByteSwap.cpp"
#include "CFileStream.cpp"
#include "CompositeRenderedFont.cpp"
#include "DeflateCodec.cpp"
#include "DialogManager.cpp"
#include "DisplayDeviceManager.cpp"