mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
preparation
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user