![]() |
cmdfx 0.3.1
Lightweight game engine for your terminal
|
The payload for the CMDFX_EVENT_MOUSE event. More...
#include <events.h>
Public Attributes | |
| int | button |
| The button that was pressed, or -1 if no button was pressed. | |
| bool | state |
| Whether the button was pressed or released. | |
| int | prevX |
| The previous x position of the mouse. | |
| int | x |
| The x position of the mouse. | |
| int | prevY |
| The previous y position of the mouse. | |
| int | y |
| The y position of the mouse. | |
The payload for the CMDFX_EVENT_MOUSE event.
| int CmdFX_MouseEvent::button |
The button that was pressed, or -1 if no button was pressed.
On most systems, the button values are as follows: