Garry's Mod Wiki

Garry's Mod Wiki

  number, number input.GetCursorPos()

Description

Returns the cursor's position on the screen.

On macOS, the cursor isn't locked on the middle of the screen which causes a significant offset of the positions returned by this function.

Issue Tracker: 4964

Returns

1 number
The cursors position on the X axis.
2 number
The cursors position on the Y axis.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...