.\" Automatically generated by Pandoc 3.4 .\" .TH "ALLEGRO_MOUSE_STATE" "3" "" "Allegro reference manual" .SH NAME ALLEGRO_MOUSE_STATE \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] \f[B]typedef\f[R] \f[B]struct\f[R] ALLEGRO_MOUSE_STATE ALLEGRO_MOUSE_STATE; .EE .SH DESCRIPTION Public fields (read only): .IP \[bu] 2 x \- mouse x position .IP \[bu] 2 y \- mouse y position .IP \[bu] 2 w, z \- mouse wheel position (2D `ball') .IP \[bu] 2 display \- the display the mouse is on (coordinates are relative to this) .IP \[bu] 2 buttons \- mouse buttons bitfield .RS 2 .PP The zeroth bit is set if the primary mouse button is held down, the first bit is set if the secondary mouse button is held down, and so on. .RE .IP \[bu] 2 pressure \- pressure, ranging from \f[CR]0.0\f[R] to \f[CR]1.0\f[R] .SH SEE ALSO al_get_mouse_state(3), al_get_mouse_state_axis(3), al_mouse_button_down(3)