gui.MousePos

From GMod Wiki

Jump to: navigation, search
Function
Syntax gui.MousePos( )
Where is this used?
Description:
Returns the mouse's position on the screen (Mouse's ScreenPos())
Returns: Number X, Number Y
Part of Library: gui
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gui.MousePos]Gui.MousePos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the mouse position in the console.
Used onNewerClient.png
Code
local x, y = gui.MousePos()
print( x, y )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox