View Source Exray.Core.Input.Mouse (Exray v0.6.0)
Input control for your mouse
Summary
Functions
Get mouse delta between frames
Get mouse position XY
Get mouse wheel movement for X or Y, whichever is larger
Get mouse wheel movement for both X and Y
Get mouse position X
Get mouse position Y
Check if a mouse button is being pressed
Check if a mouse button has been pressed once
Check if a mouse button has been released once
Check if a mouse button is NOT being pressed
Set mouse cursor
Set mouse offset
Set mouse position XY
Set mouse scaling
Functions
@spec get_mouse_delta() :: mouse_delta :: Exray.Structs.Vector2.t()
Get mouse delta between frames
@spec get_mouse_position() :: mouse_position :: Exray.Structs.Vector2.t()
Get mouse position XY
@spec get_mouse_wheel_move() :: wheel_movement :: float()
Get mouse wheel movement for X or Y, whichever is larger
@spec get_mouse_wheel_move_v() :: wheel_movement :: Exray.Structs.Vector2.t()
Get mouse wheel movement for both X and Y
@spec get_mouse_x() :: mouse_x :: integer()
Get mouse position X
@spec get_mouse_y() :: mouse_y :: integer()
Get mouse position Y
Check if a mouse button is being pressed
Check if a mouse button has been pressed once
Check if a mouse button has been released once
Check if a mouse button is NOT being pressed
@spec set_mouse_cursor(cursor :: integer()) :: :ok
Set mouse cursor
Set mouse offset
Set mouse position XY
Set mouse scaling