onClientMouseEnter
Client-side
Server-side
Shared
This event is fired when the user moves the mouse over a GUI element.
Parameters
int absoluteX, int absoluteY, element leftGUI
- absoluteX: the X position of the mouse cursor, in pixels, measured from the left side of the screen.
- absoluteY: the Y position of the mouse cursor, in pixels, measured from the top of the screen.
- leftGUI: the gui element that was switched from, or nil if it doesn't exist.
Source
element: The source of this event is the GUI element that was pointed at.
Code Examples
client
This example shows a message when you move over a GUI element.
addEventHandler( "onClientMouseEnter", root, function(aX, aY) outputChatBox( "You're pointing at a GUI element at ("..tostring(aX)..", "..tostring(aY)..")") end)
See Also
Input Events
- onClientClick
- onClientDoubleClick
- onClientCursorMove
- onClientCharacter
- onClientGUIAccepted
- onClientGUIChanged
- onClientGUIBlur
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIMove
- onClientGUIFocus
- onClientGUIMouseUp
- onClientGUIScroll
- onClientGUIMouseDown
- onClientGUITabSwitched
- onClientGUISize
- onClientKey
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
- onClientPaste
Input Functions
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleControl
- unbindKey
- toggleAllControls
- getAnalogControlState
- getBoundKeys
- getCommandsBoundToKey
- getKeyBoundToCommand
- isCapsLockEnabled
- getKeyState
- setAnalogControlState
- isKeyBound