View Source Exray.Core.Cursor (Exray v0.6.0)

Show, hide and make sure your cursor is on screen.

Summary

Functions

Check if cursor is not visible

Check if cursor is on the screen

Disables cursor (lock cursor)

Enables cursor (unlock cursor)

Hides cursor

Shows cursor

Functions

@spec cursor_is_hidden?() :: cursor_is_hidden :: boolean()

Check if cursor is not visible

@spec cursor_is_on_screen?() :: cursor_is_on_screen :: boolean()

Check if cursor is on the screen

@spec disable_cursor() :: :ok

Disables cursor (lock cursor)

@spec enable_cursor() :: :ok

Enables cursor (unlock cursor)

@spec hide_cursor() :: :ok

Hides cursor

@spec show_cursor() :: :ok

Shows cursor