natiny_input_get_cursor

C
uint32_t natiny_input_get_cursor(void);

Returns the last cursor shape accepted by Natiny. The initial shape is NATINY_CURSOR_ARROW.

Returns

Type Description
uint32_t Current cursor setting; one of the constants listed by natiny_input_set_cursor

Example

C
uint32_t before = natiny_input_get_cursor();
natiny_input_set_cursor(NATINY_CURSOR_FORBIDDEN);

/* Restore the previous cursor shape. */
natiny_input_set_cursor(before);