Type Boolean Event mouse Revision Release 2022.3683 Keywords mouse, isCommandDown
Indicates if the command or Windows button was held down at the time the mouse event occurred.
-- Called when a mouse event has been received. local function onMouseEvent( event ) if event.isCommandDown then -- The command/Windows button is currently pressed down. else -- The command/Windows button is not being pressed. end end -- Add the mouse event listener. Runtime:addEventListener( "mouse", onMouseEvent )