Fork me on GitHub
View source

package haxepunk.input

class Mouse

Static variables

View source

static middleMouseDown : Bool

If the middle button mouse is held down.

View source

static middleMousePressed : Bool

If the middle button mouse was recently pressed.

View source

static middleMouseReleased : Bool

If the middle button mouse was recently released.

View source

static middleMouseUp : Bool

If the middle button mouse is up.

View source

static mouseDown : Bool

If the left button mouse is held down

static read only mouseOnScreen : Bool

If the mouse is current over the window. If not, the mouse coordinates will show the last position before the mouse was moved out.

View source

static mousePressed : Bool

If the left button mouse was recently pressed

View source

static mouseReleased : Bool

If the left button mouse was recently released

View source

static mouseUp : Bool

If the left button mouse is up

View source

static mouseWheel : Bool

If the mouse wheel has moved

static read only mouseWheelDelta : Int

If the mouse wheel was moved this frame, this was the delta.

static read only mouseX : Int

X position of the mouse on the screen.

static read only mouseY : Int

Y position of the mouse on the screen.

View source

static rightMouseDown : Bool

If the right button mouse is held down.

View source

static rightMousePressed : Bool

If the right button mouse was recently pressed.

View source

static rightMouseReleased : Bool

If the right button mouse was recently released.

View source

static rightMouseUp : Bool

If the right button mouse is up.

Static functions

View source

static checkInput (input : InputType) : Bool

View source

static define (input : InputType, button : MouseButton) : Void

View source

static hideCursor () : Void

Hides the native cursor

View source

static postUpdate () : Void

View source

static pressedInput (input : InputType) : Bool

View source

static releasedInput (input : InputType) : Bool

View source

static showCursor () : Void

Shows the native cursor

View source

static update () : Void