类型 布尔值 事件 mouse 修订版 发行版 2024.3703 关键字 mouse、isShiftDown
指示鼠标事件发生时是否按住 shift 按钮。
-- Called when a mouse event has been received.
local function onMouseEvent( event )
if event.isShiftDown then
-- The shift button is currently pressed down.
else
-- The shift button is not being pressed.
end
end
-- Add the mouse event listener.
Runtime:addEventListener( "mouse", onMouseEvent )