ScreenFunctions
Index
Properties
Click
The event that triggered this
optionalDraw
Called each frame when the screen needs to be drawn.
optionalExit
Called when user presses Esc
optionalKeyDown
Called if the the user presses any key
The event that triggered this
optionalKeyUp
Called if the user releases a pressed key
The event that triggered this
optionalLoad
Called when screen is loaded using CommonSetScreen
optionalMouseDown
Called if the user presses the mouse button or touches the touchscreen on the canvas
The event that triggered this
optionalMouseMove
Called if the user moves the mouse cursor or the touch on the touchscreen over the canvas
The event that triggered this
optionalMouseUp
Called if the user releases the mouse button or the touchscreen on the canvas
The event that triggered this
optionalMouseWheel
Called if the user moves the mouse wheel on the canvas
The event that triggered this
optionalPaste
Called if the user pastes some content
The event that triggered this
optionalResize
Called when screen size or position changes or after screen load
If the reason for call was load (true) or window resize (false)
Run
Called each frame
The current time for frame
optionalUnload
Called when this screen is being replaced
Called if the user clicks on the canvas