Api Sandbox UI ButtonEvent
class

ButtonEvent

public class ButtonEvent

Keyboard (and mouse) key press PanelEvent.

Properties

Name Type Description
Button String The button that triggered the event.
Pressed Boolean Whether the button was pressed in, or release.
VirtualKey Int32
KeyboardModifiers KeyboardModifiers The keyboard modifier keys that were held down at the moment the event triggered.
HasShift Boolean Whether Shift key was being held down at the time of the event.
HasCtrl Boolean Whether Control key was being held down at the time of the event.
HasAlt Boolean Whether Alt key was being held down at the time of the event.
StopPropagation Boolean Set to to prevent the event from propagating to the parent panel.

Methods

virtual ButtonEvent <Clone>$()
Assembly: Sandbox.Engine Namespace: Sandbox.UI Full Name: Sandbox.UI.ButtonEvent