1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

preparation

This commit is contained in:
Michael
2023-08-26 19:53:36 +02:00
committed by GitHub
parent 3b06abd0d7
commit bd0f9bb280
6 changed files with 36 additions and 4 deletions

View File

@ -28,6 +28,7 @@
#include "../../lib/CConfigHandler.h"
#include <SDL_events.h>
#include <SDL_timer.h>
InputHandler::InputHandler()
: mouseHandler(std::make_unique<InputSourceMouse>())
@ -253,6 +254,11 @@ void InputHandler::hapticFeedback()
fingerHandler->hapticFeedback();
}
uint64_t InputHandler::getTicks()
{
return SDL_GetTicks64();
}
bool InputHandler::hasTouchInputDevice() const
{
return fingerHandler->hasTouchInputDevice();