onClientMouseLeave
Client-side
Server-side
Shared
This event is fired when the user moves the mouse away from a GUI element.
Parameters
int absoluteX, int absoluteY, element enteredGUI
- 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.
- enteredGUI: is 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 the mouse was moved from.
Code Examples
client
This example shows a message when you move the mouse away from a GUI element.
addEventHandler("onClientMouseLeave", getRootElement(), function(aX, aY) outputChatBox("You're no longer pointing at a GUI element at (" .. tostring(aX) .. ", " .. tostring(aY) .. ")")end)
See Also
Input Events
- onClientCharacter
- onClientClick
- onClientCursorMove
- onClientDoubleClick
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIFocus
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientKey
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
- onClientPaste
Input Functions
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleAllControls
- toggleControl
- unbindKey
- getAnalogControlState
- getCommandsBoundToKey
- getBoundKeys
- getKeyBoundToCommand
- getKeyState
- isCapsLockEnabled
- setAnalogControlState
- isKeyBound