class flixel.input.mouse.FlxMouseButton implements IFlxDestroyable

Available on all platforms

Class Fields

static var JUST_PRESSED:Int

static var JUST_RELEASED:Int

static var LEFT:Int

These IDs are negative to avoid overlaps with possible touch point IDs.

static var MIDDLE:Int

static var PRESSED:Int

static var RELEASED:Int

static var RIGHT:Int

Instance Fields

var last:Int

function new(ID:Int):Void

function destroy():Void

function justPressed():Bool

Check to see if the button was just pressed. *

returns

Whether the button was just pressed.

function justReleased():Bool

Check to see if the button was just released. *

returns

Whether the button was just released.

function onDown(FlashEvent:MouseEvent):Void

function onUp(?FlashEvent:MouseEvent = null):Void

Internal event handler for input and focus. *

FlashEvent

Flash mouse event.

function pressed():Bool

Check to see if the button is pressed. *

returns

Whether the button is pressed.

function reset():Void

Resets the just pressed/just released flags and sets mouse to not pressed.

function update():Void

Upates the last and current state of this mouse button.