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

1:

mouse m = new mouse();

2:

int x = m.X;

Notes

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

The unit is physical pixels.

Links for reference

Copyright © Cooker All rights reserved.