struct VirtualButtonInformation

Describes a virtual button.

Virtual buttons allow you to map custom actions without needing to know about what physical buttons trigger those actions.

Public

Constructors

VirtualButtonInformation

VirtualButtonInformation() = default

VirtualButtonInformation

VirtualButtonInformation(ButtonCode buttonCode, ButtonModifier modifiers = ButtonModifier::None, bool repeatable = false)

Constructs a virtual button descriptor.

buttonCode
Physical button the virtual button is triggered by.
modifiers
Modifiers required to be pressed with the physical button to trigger the virtual button.
repeatable
If true, the virtual button events will be sent continually while the physical button is being held.

Fields

ButtonCode

Modifiers

ButtonModifier Modifiers

Repeatable

bool Repeatable