mouse_status — Status of a mouse input
int32 mouse_status(int8 ident);
Get the current status of the mouse input specified by ident.
The mouse_status() returns the current status any mouse input without the need of mapping the mouse input to a controller I/O. |
Returns an int32 value that represents the current status of the mouse input specified by ident.
#include <mouse.gph> main { if(mouse_status(MBUTTON_1)) { set_val(BUTTON_5, 100.0); } }
#include <mouse.gph> main { int32 mstatus; if (mouse_status(MREPORT_UPDATED)) { if (mstatus=mouse_status(MOUSE_WHEEL)) { if (mstatus== 1) printf("Mouse Wheel Forward"); if (mstatus==-1) printf("Mouse Wheel Backward"); } } }