void InputModule::initialize(Game& a_game)
{
TDS_PROFILER_STARTBLOCK("InputModule initialize");
m_inputHandler = new InputHandler;
m_inputHandler->initialize(a_game);
tds::GameLoopPriority priorityData;
priorityData.m_priorityInStage = 0;
priorityData.m_stage = EGameLoopStage::Stage_InitializeLoop;
a_game.registerToGameLoop(*this, priorityData, true);
TDS_PROFILER_ENDBLOCK("InputModule initialize");
}
void InputModule::update(float a_deltaTime)
{
TDS_PROFILER_STARTBLOCK("InputModule update");
m_inputHandler->update();
TDS_PROFILER_ENDBLOCK("InputModule update");
}