Category: Input
MouseX()
Integer
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.
mx = MouseX()