mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-01-04 17:21:01 +07:00
basic touch system impl
This commit is contained in:
@@ -11,8 +11,15 @@ end
|
||||
|
||||
---@param go gobject
|
||||
---@param type string
|
||||
---@param event any
|
||||
---@param event touchable_input_evt | touchable_mouse_evt
|
||||
function M:on_event(go, type, event)
|
||||
if type == "touchable.mouse_evt" then
|
||||
the_debug:trace(string.format(
|
||||
"scene %q touched(%s %s)",
|
||||
go.named and go.named.name or "---",
|
||||
event.type,
|
||||
event.button))
|
||||
end
|
||||
end
|
||||
|
||||
---@param go gobject
|
||||
|
||||
Reference in New Issue
Block a user