Add `SCENE:onInputMove`

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-04-28 20:44:56 +07:00
parent 5eced5bf8d
commit dbbc73546c
3 changed files with 17 additions and 3 deletions

View File

@@ -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"