mirror of
https://github.com/Insality/druid
synced 2025-09-28 18:42:20 +02:00
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
This commit is contained in:
20
druid/data.lua
Normal file
20
druid/data.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
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")
|
||||
|
||||
-- interest
|
||||
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.TRANSLATABLE = hash("TRANSLATABLE")
|
||||
|
||||
M.RELEASED = "released"
|
||||
M.PRESSED = "pressed"
|
||||
|
||||
return M
|
Reference in New Issue
Block a user