[−][src]Module ggez::input::mouse
Mouse utility functions.
Structs
MouseContext | Stores state information for the mouse. |
Enums
MouseButton | Describes a button of a mouse controller. |
MouseCursor | Describes the appearance of the mouse cursor. |
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 |
relative_mode | TODO: Can we implement this? Check with Winit peoples. Winit doesn't implement it itself, we can do it by locking the cursor to the window and resetting it to center each frame? |
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. |
set_relative_mode | TODO: Can we impement this? Check with Winit peoples. |