Static methods

@:value({ num : 0 })staticget(num:Int = 0):Pen

Get current Pen.

Parameters:

num

(optional) pen id (0 by default).

Methods

notify(downListener:(Int, Int, Float) ‑> Void, upListener:(Int, Int, Float) ‑> Void, moveListener:(Int, Int, Float) ‑> Void):Void

Creates event handlers from passed functions.

Parameters:

downListener

function with x:Int,y:Int,pressure:Float arguments, fired when a pen is pressed down. pressure is force of pressure on the screen in the range from 0 to 1.

upListener

function with x:Int,y:Int,pressure:Float arguments, fired when a pen is released.

moveListener

function with x:Int,y:Int,pressure:Float arguments, fired when a pen is moved.

notifyWindowed(windowId:Int, downListener:(Int, Int, Float) ‑> Void, upListener:(Int, Int, Float) ‑> Void, moveListener:(Int, Int, Float) ‑> Void):Void

Creates event handlers from passed functions like notify function, but only for window with windowId:Int id argument. The windows are not supported by all the targets.

remove(downListener:(Int, Int, Float) ‑> Void, upListener:(Int, Int, Float) ‑> Void, moveListener:(Int, Int, Float) ‑> Void):Void

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

removeWindowed(windowId:Int, downListener:(Int, Int, Float) ‑> Void, upListener:(Int, Int, Float) ‑> Void, moveListener:(Int, Int, Float) ‑> Void):Void

Removes event handlers for windowId:Int from the passed functions that were passed to notifyWindowed function.