mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Add `SCENE:onInputMove`
This commit is contained in:
12
scene.lua
12
scene.lua
@@ -5,8 +5,16 @@ SCENE = Object:extend()
|
||||
function SCENE:new() end
|
||||
function SCENE:update() end
|
||||
function SCENE:render() end
|
||||
function SCENE:onInputPress() end
|
||||
function SCENE:onInputRelease() end
|
||||
|
||||
-- e in 3 below functions will contain:
|
||||
-- key - input, key, scancode
|
||||
-- joystick - input, button, name
|
||||
-- touch - x, y, dx, dy, id
|
||||
-- virtual - key
|
||||
|
||||
function SCENE:onInputPress(e) end
|
||||
function SCENE:onInputMove(e) end
|
||||
function SCENE:onInputRelease(e) end
|
||||
|
||||
ExitScene = require "scene.exit"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user