Module ggez::mouse [] [src]

Mouse utility functions.

Structs

MouseContext

Stores state information for the mouse, what little of it there is.

Functions

get_grabbed

Get whether or not the mouse is "grabbed", ie, confined to the window.

get_position

Get the current position of the mouse cursor, in pixels. Complement to set_position(). Uses strictly window-only coordinates.

get_relative_mode

Get whether or not the mouse is in relative mode.

set_grabbed

Set whether or not the mouse is "grabbed", ie, confined to the window.

set_position

Set the current position of the mouse cursor, in pixels. Uses strictly window-only coordinates.

set_relative_mode

Set whether or not the mouse is in relative mode.