P.OnCursorMoved
From GMod Wiki
Event Hook | |
Hook Name | OnCursorMoved |
Syntax | PANEL:OnCursorMoved( Number x, Number y ) |
Description | Called whenever the the mouse is moved within the panel. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=P.OnCursorMoved]P.OnCursorMoved [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | prints hello every time you move the mouse within the panel. |
---|---|
Used on | |
Code | function PANEL:OnCursorMoved(x, y) print("hello") end |
Output | N/A |
Additional Notes
- X,Y are local to the panel.