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

This commit is contained in:
Insality
2019-03-27 00:46:58 +03:00
parent c894c16ed9
commit e986b2c3b8
3 changed files with 66 additions and 33 deletions

18
druid/data.lua Normal file
View File

@@ -0,0 +1,18 @@
local M = {}
M.A_TOUCH = hash("touch")
M.A_TEXT = hash("text")
M.A_BACKSPACE = hash("backspace")
M.A_ENTER = hash("enter")
M.A_ANDR_BACK = hash("back")
M.LAYOUT_CHANGED = hash("layout_changed")
M.ON_MESSAGE = hash("on_message")
M.ON_INPUT = hash("on_input")
M.ON_SWIPE = hash("on_swipe")
M.ON_UPDATE = hash("on_update")
M.RELEASED = "released"
M.PRESSED = "pressed"
return M