Type Boolean Event mouse Revision Release 2021.3642 Keywords mouse, isMiddleButtonDown
Indicates if the mouse's middle button was held down at the time the mouse event occurred.
Android devices older than version 4.0 do not support the middle mouse button. This property will always be set
false for those older devices.
-- Called when a mouse event has been received. local function onMouseEvent( event ) if event.isMiddleButtonDown then -- The mouse's middle button is currently pressed down. else -- The mouse's middle button is not being pressed. end end -- Add the mouse event listener. Runtime:addEventListener( "mouse", onMouseEvent )
© 2021 Solar2D All Rights Reserved.
Help us help you! If you notice a problem with this page, please report it.