Methods

notify (touchStartListener:Int ‑> Int ‑> Int ‑> Void, touchEndListener:Int ‑> Int ‑> Int ‑> Void, moveListener:Int ‑> Int ‑> Int ‑> Void):Void

Creates event handlers from passed functions.

Parameters:

touchStartListener

function with id:Int,x:Int,y:Int arguments, fired when a surface is pressed down. The finger id goes from 0 increasing by one. When the finger releases the screen, the old id is freed up and will be occupied with pressing the next finger (when releasing a finger, the shift of ids does not occur).

touchEndListener

function with id:Int,x:Int,y:Int arguments, fired when a surface is released.

moveListener

function with id:Int,x:Int,y:Int arguments, fired when a surface is moved.

remove (touchStartListener:Int ‑> Int ‑> Int ‑> Void, touchEndListener:Int ‑> Int ‑> Int ‑> Void, moveListener:Int ‑> Int ‑> Int ‑> Void):Void

Removes event handlers from the passed functions that were passed to notify function.

Static methods

staticget (num:Int = 0):Surface

Get current Surface.

Parameters:

num

(optional) surface id (0 by default).