Structure to store mouse state. More...
#include <input.h>
Public Attributes | |
s32 | x |
s32 | y |
s32 | lastX |
s32 | lastY |
s32 | dx |
s32 | dy |
s8 | scroll_x |
s8 | scroll_y |
u8 | pressed_button |
u8 | active_button |
u8 | released_button |
Structure to store mouse state.
This structure holds the current and last positions of the mouse, scroll wheel movements, and the states of mouse buttons.
s32 Mouse::x |
The current x-coordinate of the mouse.
s32 Mouse::y |
The current y-coordinate of the mouse.
s32 Mouse::lastX |
The last x-coordinate of the mouse.
s32 Mouse::lastY |
The last y-coordinate of the mouse.
s32 Mouse::dx |
The horizontal movement of the mouse.
s32 Mouse::dy |
The vertical movement of the mouse.
s8 Mouse::scroll_x |
The horizontal scroll movement of the mouse.
s8 Mouse::scroll_y |
The vertical scroll movement of the mouse.
u8 Mouse::pressed_button |
Bitfield representing mouse buttons that were pressed.
u8 Mouse::active_button |
Bitfield representing currently active mouse buttons.
u8 Mouse::released_button |
Bitfield representing mouse buttons that were released.