<- PRPL reference <- Input

GetMouseScreenPosition

ArgumentsResultNotation
float float [ - float float ]

Description

Return the relative (from 0 to 1) position of the mouse on the screen, (0,0) = left-bottom corner, (1,1) = top-right corner.

Examples

GetMouseScreenPosition pop 0.5 gt if
    #the mouse is in the right half of the screen
endif