Kiwi.Input.MouseCursor Class
Holds the information about a Mouse Cursor, such as the position of the cursor, the mouse wheel's delta, the button that was used, e.t.c. Note: A mouse cursor is always active.
Item Index
Methods
objType
()
String
public
The type of object this class is.
Returns:
"MouseCursor"
start
-
event
Gets executed when the mouse cursor gets initally pressed.
Parameters:
-
eventEvent
stop
-
event
Gets executed when the mouse cursor gets initally released.
Parameters:
-
eventEvent
wheel
-
event
When the mouse wheel event fires and the mouse's delta changes.
Parameters:
-
eventEvent
Properties
altKey
Boolean
public
If the alt key is down.
ctrlKey
Boolean
public
If the ctrl key is down.
preventDown
Boolean
public
Indicates if the "preventDefault" method should be executed whenever a 'down' mouse event occurs.
preventUp
Boolean
public
Indicates if the "preventDefault" method should be executed whenever a 'up' mouse event occurs.
preventWheel
Boolean
public
Indicates if the "preventDefault" method should be executed whenever a 'wheel' mouse event occurs.
shiftKey
Boolean
public
If the shift key is down.
wheelDeltaX
Number
public
The offset of the mouse wheel on the X axis.
Default: 0
wheelDeltaY
Number
public
The offset of the mouse wheel on the Y axis.
Default: 0
