mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
implement overlay for touch screens
This commit is contained in:
@ -389,6 +389,13 @@ bool InputHandler::hasTouchInputDevice() const
|
||||
return fingerHandler->hasTouchInputDevice();
|
||||
}
|
||||
|
||||
int InputHandler::getNumTouchFingers() const
|
||||
{
|
||||
if(currentInputMode != InputMode::TOUCH)
|
||||
return 0;
|
||||
return fingerHandler->getNumTouchFingers();
|
||||
}
|
||||
|
||||
void InputHandler::dispatchMainThread(const std::function<void()> & functor)
|
||||
{
|
||||
auto heapFunctor = new std::function<void()>(functor);
|
||||
|
Reference in New Issue
Block a user