Added keypad, fixed one crash bug and few more features for mobile version

This commit is contained in:
OTCv8
2020-06-12 17:58:54 +02:00
parent 8391355c42
commit 82018bf3c9
23 changed files with 294 additions and 36 deletions

View File

@@ -172,6 +172,12 @@ function UIGameMap:onMouseRelease(mousePosition, mouseButton)
return ret
end
function UIGameMap:onTouchRelease(mousePosition, mouseButton)
if mouseButton ~= MouseTouch then
return self:onMouseRelease(mousePosition, mouseButton)
end
end
function UIGameMap:canAcceptDrop(widget, mousePos)
if not widget or not widget.currentDragThing then return false end