Cursor property allows you set the type of hardware mouse cursor image that is used when over the active window, or game. There are several standard ones built-in provided by the OS:
[Display] Cursor = hand
Alternatively, a very nifty feature is to provide your own image as the cursor (
webp are all supported). Great for games where a fancy cursor is needed, ie:
[Display] Cursor = amiga-cursor.png
By default, this will place the cursor's hotspot in the top left corner. You can move this hotspot by providing an optional vector, ie:
[Display] cursor = amiga-cursor.png # (10, 10)
And like a normal cursor, it will hang outside the bounds of the window when you are the right or bottom extremes. Very nice.
You can change cursors using the Orx Console. Press the ~ key to open the console and type:
Finally, you can set a mouse cursor in code:
This will set the cursor to the amiga arrow, and keep the default hotspot by using orxNULL. Change the hotspot position using a vector like:
orxVECTOR hotspot = orxVECTOR_0; hotspot.fX = 10; hotspot.fY = 10; orxMouse_SetCursor("amiga-cursor.png", &hotspot);
If you don't want a cursor to display at all then you won't want to show it. You an use the
ShowCursor in the
Mouse section. See Mouse Config inputs for more details.