RB.PointerPos
Method - Static
public static Vector2i PointerPos(int pointerIndex = 0)
|
Parameters
pointerIndex
|
int
|
Index of the pointer position to get
|
Returns
Vector2i
Pointer position
DescriptionReturns the current pointer position in game display coordinates. If pointerIndex is not specified then the mouse position, or first finger touch is returned. Alternatively, pointerIndex value of 0 to 3 can be specified to query a specific finger touch position. If there is no mouse connected, and there are no active touches then the position is undefined. See RB.PointerPosValid for checking if the pointer position is valid. Pointer button states can be checked with RB.ButtonDown, RB.ButtonPressed, and RB.ButtonReleased. ExampleSee AlsoRB.PointerPosValid RB.PointerScrollDelta RB.ButtonDown RB.ButtonPressed RB.ButtonReleasedSee DocsFeatures - Pointer Features - Multi-touch Support |