class Surface
package kha.input
Static methods
staticget(num:Int = 0):Surface
Get current Surface.
Parameters:
| num | (optional) surface id (0 by default). | 
|---|
staticsetTouchDownEventBlockBehavior(behavior:TouchDownEventBlockBehavior):Void
Allows fine grained control of touch down browser default actions (html5 only).
Parameters:
| behavior | can be: Full - block touch down events. None - do not block touch down events. Custom(func:(event:TouchEvent)->Bool) - set custom handler for touch down event (should return true if touch down event blocked). | 
|---|
Methods
notify(?touchStartListener:(id:Int, x:Int, y:Int) ‑> Void, ?touchEndListener:(id:Int, x:Int, y:Int) ‑> Void, ?moveListener:(id:Int, x:Int, y:Int) ‑> Void):Void
Creates event handlers from passed functions.
Parameters:
| touchStartListener | (optional) function with  | 
|---|---|
| touchEndListener | (optional) function with  | 
| moveListener | (optional) function with  |