PluginEvent¶
Type
PluginEvent describes one viewport input event passed to ToolSpec.Modal.
Kind¶
Kind is "move", "press", "release", "wheel", or "key".
Button¶
Button is 1 for left button ("press", "release", and "move" while held), 2 on "press" and "release" for a stationary right click, or 0 otherwise.
Key¶
Key is "Escape", "Return", "Backspace", "Tab", "Space", "Delete", "A" to "Z", or "0" to "9" on "key", or nil otherwise.
Shift¶
Shift is true while Shift is held.
Ctrl¶
Ctrl is true while Ctrl is held.
Alt¶
Alt is true while Alt is held.
WheelSteps¶
WheelSteps is the signed wheel delta (-127 to 127) on "wheel", or 0 otherwise.
RayOrigin¶
RayOrigin is the world-space camera ray origin through the cursor.
RayDirection¶
RayDirection is the world-space unit ray direction through the cursor.
DeltaX¶
DeltaX is horizontal cursor motion in pixels since the last press or release.
DeltaY¶
DeltaY is vertical cursor motion in pixels since the last press or release.
Hit¶
Hit is the PluginHit for the nearest unlocked part within 1,000 units, or nil.