Module ggez::input::mouse [−][src]
Mouse utility functions.
Structs
MouseContext | Stores state information for the mouse. |
Enums
CursorIcon | Describes the appearance of the mouse cursor. |
MouseButton | Describes a button of a mouse controller. |
Functions
button_pressed | Returns whether or not the given mouse button is pressed. |
cursor_grabbed | Get whether or not the mouse is grabbed (confined to the window) |
cursor_hidden | Set whether or not the mouse is hidden (invisible) |
cursor_type | Returns the current mouse cursor type of the window. |
delta | Get the distance the cursor was moved during last frame, in pixels. |
position | Get the current position of the mouse cursor, in pixels.
Complement to |
set_cursor_grabbed | Set whether or not the mouse is grabbed (confined to the window) |
set_cursor_hidden | Set whether or not the mouse is hidden (invisible). |
set_cursor_type | Modifies the mouse cursor type of the window. |
set_position | Set the current position of the mouse cursor, in pixels. Uses strictly window-only coordinates. |