Files
Aerofoil/PortabilityLayer/HostSuspendHook.cpp

23 lines
542 B
C++
Raw Normal View History

2021-03-29 21:41:11 -04:00
#include "HostSuspendHook.h"
2021-03-26 17:05:38 -04:00
#include "HostSuspendCallArgument.h"
#include "DisplayDeviceManager.h"
#include "PLDrivers.h"
2021-03-29 21:41:11 -04:00
#include "IGpDisplayDriver.h"
#include "IGpInputDriver.h"
2021-03-29 21:41:11 -04:00
namespace PortabilityLayer
{
2021-03-26 17:05:38 -04:00
void RenderFrames(unsigned int ticks)
2021-03-29 21:41:11 -04:00
{
2021-03-26 17:05:38 -04:00
PLDrivers::GetDisplayDriver()->ServeTicks(ticks);
2021-03-29 21:41:11 -04:00
DisplayDeviceManager::GetInstance()->IncrementTickCount(ticks);
const size_t numInputDrivers = PLDrivers::GetNumInputDrivers();
for (size_t i = 0; i < numInputDrivers; i++)
PLDrivers::GetInputDriver(i)->ProcessInput();
2021-03-29 21:41:11 -04:00
}
}