1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-16 08:17:40 +00:00

kiosk mode

This commit is contained in:
kepler155c@gmail.com
2019-01-09 08:50:42 -05:00
parent 4977ea94d7
commit f0a65d87ce
3 changed files with 37 additions and 2 deletions

View File

@@ -97,10 +97,10 @@ function Manager:init()
end,
monitor_touch = function(_, side, x, y)
Input:translate('mouse_click', 1, x, y)
local ie = Input:translate('mouse_up', 1, x, y)
local dev = self.devices[side]
if dev and dev.currentPage then
Input:translate('mouse_click', 1, x, y)
local ie = Input:translate('mouse_up', 1, x, y)
self:click(dev.currentPage, ie.code, 1, x, y)
end
end,