Druid-Extension/druid/base/android_back.lua
Maxim Tuprikov 1123d09e5d
Feature/component register (#1)
* remove components from main factory

* register base components in factory, interest moved to druid.data

* add simple usage of button

* translatable should be in data

* ability to extend components, stubs for sounds and locale
2019-03-27 11:08:40 +03:00

12 lines
223 B
Lua

local M = {}
--- input handler
-- @param action_id - input action id
-- @param action - input action
function M.on_input(instance, action_id, action)
instance.callback(instance.parent.parent)
return true
end
return M