Home Cooker Classes Others Rice CookerGX
Classes  >  mouse  >  X
mouse class : X getter

Description

Gets a x-coordinate of the cursor's position.

Syntax

mouseInstance.X

Arguments

None

Return value

ClassDescription
intx-coordinate of the cursor's position.

Sample code

//mouseInstance is an any instance of mouse type.

int x = mouseInstance.X;

Notes

Return value is a x-coordinate of the screen coordinates.

Links for reference

Copyright © Rice All rights reserved.