This class handles all cursor-related tasks.

Static variables

privatestaticmouse:Mouse

private@:value(0)staticmouseX:Int = 0

private@:value(0)staticmouseY:Int = 0

private@:value(false)staticread onlysystemCursorHidden:Bool = false

private@:value(MouseCursor.Default)statictype:MouseCursor = MouseCursor.Default

Static methods

privatestaticinlinedraw(g:Graphics):Void

Draws the cursor onto the screen.

Parameters:

g

The kha.graphics2.Graphics used to draw the cursor

privatestaticgetCursorEnumValue(name:String):MouseCursor

privatestaticinit():Void

staticsetCursor(cursorType:MouseCursor):Void

Set the type of the mouse cursor.

Parameters:

cursorType

The cursor type

staticsetPosition(x:Int, y:Int):Void

Set the mouse position.

Parameters:

x

The x position

y

The y position