Class: Mouse

Mouse

The Mouse class enables Mouse input in Input. When listening to Mouse#BUTTON_RIGHT, the context menu is disabled. When mapping Mouse#WHEEL_X or Mouse#WHEEL_Y, scrolling is disabled.


new Mouse()

Properties:
Name Type Description
sensitivityX

The horizontal mouse movement sensitivity

sensitivityY

The vertical mouse movement sensitivity

sensitivityScroll

The scroll wheel sensitivity

Author:
  • derschmale <http://www.derschmale.com>
See:

Members


<static> BUTTON_LEFT

The left button name


<static> BUTTON_MIDDLE

The middle (usually scroll) button name


<static> BUTTON_RIGHT

The right button name


<static> DRAG_X

The axis name for when the mouse moves over the canvas with the left mouse button down


<static> DRAG_Y

The axis name for when the mouse moves over the canvas with the left mouse button down


<static> MOVE_X

The axis name for when the mouse moves horizontally over the canvas


<static> MOVE_Y

The axis name for when the mouse moves vertically over the canvas


<static> POS_X

The axis name for the mouse position on the canvas. 0 means all the way left, 1 means all the way right.


<static> POS_Y

The axis name for the mouse position on the canvas. 0 means all the way to the top, 1 means all the way to the bottom.


<static> WHEEL_X

The axis name when the horizontal scroll wheel moves


<static> WHEEL_Y

The axis name when the vertical scroll wheel moves

Methods


map()


unmap()