GSDP:GAM100/CProcessing/CP Input GetMouseY()
From Inside
< GSDP:GAM100 | CProcessing
CP_Input_GetMouseY()
Description
The system variable CP_Input_GetMouseY() always contains the current vertical coordinate of the mouse. This will track the position of the mouse anywhere on the screen, even if the window is in the background.
Example
void draw()
{
CP_Settings_Background(CP_Color_Create(200, 200, 200, 255));
CP_Graphics_DrawLine(20, CP_Input_GetMouseY(), 80, CP_Input_GetMouseY());
}