Add new callback

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-18 16:49:31 +07:00
parent 44d114757f
commit 72a8429c16

View File

@@ -6,12 +6,15 @@ function SCENE:new() end
function SCENE:update() end
function SCENE:render() end
-- e in 3 below functions will contain different things based on it's type:
-- e in 4 below functions will contain different things based on it's type:
-- key - input, key, scancode
-- joystick - input, button, name
-- virtual - input
-- touch - x, y, dx, dy, id
-- mouse - x, y, dx, dy, presses
-- wheel - dx, dy
function SCENE:onInputMove(e) end
function SCENE:onInputPress(e) end
function SCENE:onInputDrag(e) end
function SCENE:onInputRelease(e) end