mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
#72 fix return in on_input functions
This commit is contained in:
parent
e8b1809321
commit
409657c12b
@ -16,6 +16,7 @@ end
|
|||||||
|
|
||||||
-- Call only if exist interest: const.ON_INPUT or const.ON_INPUT_HIGH
|
-- Call only if exist interest: const.ON_INPUT or const.ON_INPUT_HIGH
|
||||||
function M.on_input(self, action_id, action)
|
function M.on_input(self, action_id, action)
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ end
|
|||||||
|
|
||||||
function M.on_input(self, action_id, action)
|
function M.on_input(self, action_id, action)
|
||||||
if action_id ~= const.ACTION_TOUCH and action_id ~= const.ACTION_MULTITOUCH then
|
if action_id ~= const.ACTION_TOUCH and action_id ~= const.ACTION_MULTITOUCH then
|
||||||
return
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if not helper.is_enabled(self.node) then
|
if not helper.is_enabled(self.node) then
|
||||||
|
@ -33,7 +33,7 @@ end
|
|||||||
|
|
||||||
function M.on_input(self, action_id, action)
|
function M.on_input(self, action_id, action)
|
||||||
if action_id ~= const.ACTION_TOUCH and action_id ~= nil then
|
if action_id ~= const.ACTION_TOUCH and action_id ~= nil then
|
||||||
return
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if not action_id and helper.is_mobile() then
|
if not action_id and helper.is_mobile() then
|
||||||
|
@ -95,7 +95,7 @@ end
|
|||||||
|
|
||||||
function M.on_input(self, action_id, action)
|
function M.on_input(self, action_id, action)
|
||||||
if action_id ~= const.ACTION_TOUCH then
|
if action_id ~= const.ACTION_TOUCH then
|
||||||
return
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if not helper.is_enabled(self.node) then
|
if not helper.is_enabled(self.node) then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user