class openfl.ui.GameInputDevice

Available on all platforms

Class Fields

static var MAX_BUFFER_SIZE:Int

Instance Fields

var enabled:Bool

Enables or disables this device.

var id:String

Returns the ID of this device.

var name:String

Returns the name of this device.

var numControls:Int

Returns the number of controls on this device.

var sampleInterval:Int

Specifies the rate (in milliseconds) at which to retrieve control values.

function getCachedSamples(data:ByteArray, ?append:Bool = false):Int

Writes cached sample values to the ByteArray. @return

data
append

function getControlAt(i:Int):GameInputControl

Retrieves a specific control from a device. @return

i

function startCachingSamples(numSamples:Int, controls:Vector<String>):Void

Requests this device to start keeping a cache of sampled values.

numSamples
null

controls

function stopCachingSamples():Void

Stops sample caching.