Creates a new virtual button registered with to multiple ButtonCode.
Unique name used to access the virtual button.
Physical buttons the virtual button is triggered by.
Optionalmodifiers: EnumValue<ButtonModifier, number>Modifiers required to be pressed with the physical button to trigger the virtual button.
Optionalrepeatable: booleanIf true, the virtual button events will be sent continually while the physical button is being held.
Optionalcategory: stringThe category of the button, if undefined, the default category will be used.
OptionalisInternalConstructor: booleanThe newly created button.
The button must registered with an InputConfiguration to become active and start emitting events.
Creates a new virtual button registered with a single ButtonCode.
Unique name used to access the virtual button.
Physical button the virtual button is triggered by.
Optionalmodifiers: EnumValue<ButtonModifier, number>Modifiers required to be pressed with the physical button to trigger the virtual button.
Optionalrepeatable: booleanIf true, the virtual button events will be sent continually while the physical button is being held.
Optionalcategory: stringThe category of the button, if undefined, the default category will be used.
The newly created button.
The button must registered with an InputConfiguration to become active and start emitting events.
Gets the category of the button.
Gets the button code.
Determines if the button is currently overriden by a profile.
Determines if the button is repeatable.
Gets the modifiers.
Gets the name of the button.
Gets the registration scope of the button.
The VirtualButton class implements an abstract HID button. The button can be mapped to multiple
ButtonCodevalues at the same time to handle multiple inputs.