update scroll and helper

This commit is contained in:
Insality
2019-09-25 20:12:52 +03:00
parent 4ce8e85d15
commit 099eaa1e10
3 changed files with 91 additions and 39 deletions

View File

@@ -1,7 +1,6 @@
local M = {}
-- actions
-- Actions
M.A_TOUCH = hash("touch")
M.A_TEXT = hash("text")
M.A_BACKSPACE = hash("backspace")
@@ -11,21 +10,20 @@ M.A_ANDR_BACK = hash("back")
M.RELEASED = "released"
M.PRESSED = "pressed"
--- interests
--- Interests
M.ON_MESSAGE = hash("on_message")
M.ON_UPDATE = hash("on_update")
-- input
-- Input
M.ON_SWIPE = hash("on_swipe")
M.ON_INPUT = hash("on_input")
M.ui_input = {
[M.ON_SWIPE] = true,
[M.ON_INPUT] = true
}
-- ui messages
-- UI messages
M.ON_CHANGE_LANGUAGE = hash("on_change_language")
M.ON_LAYOUT_CHANGED = hash("on_layout_changed")