MouseX

Category: Input

Back to System Functions


Signature

MouseX()

Returns

Integer

Description

Returns the current mouse X position mapped into the virtual screen coordinate space.

The mouse position system functions account for the current virtual resolution, render scaling, and any letterbox or pillarbox offsets applied by Graphics.

Example

mx = MouseX()