Home »Action Reference»Input Actions»Get Mouse X
Index

Get Mouse X

Gets the x position of the mouse and stores it in a float variable.

Store
The float variable.
Normalize
Normalized coordinates are 0 to 1 (0 = left, 1 = right). Otherwise the coordinate is in pixels. Normalized coordinates are useful for resolution independent functions.

 

Note: To get mouse speed use Get Axis with "Mouse X" and "Mouse Y."