User Tools

Site Tools


prpl:getmousescreenposition

This is an old revision of the document!


<- 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 upper half of the screen
endif
prpl/getmousescreenposition.1529011633.txt.gz · Last modified: 2025/02/14 14:56 (external edit)