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>
Modifiers required to be pressed with the physical button to trigger the virtual button.
Optionalrepeatable: boolean
If true, the virtual button events will be sent continually while the physical button is being held.
Optionalcategory: string
The 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>
Modifiers required to be pressed with the physical button to trigger the virtual button.
Optionalrepeatable: boolean
If true, the virtual button events will be sent continually while the physical button is being held.
Optionalcategory: string
The 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.
Gets the ID of the button.
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.
Determines if the virtual button just getting pressed. This state is only active for one frame.
OptionaldeviceIndex: number
Optional device index in case multiple input devices are available.
Determines if the virtual button is being held. This state is active as long as the button is being held down, possibly for multiple frames.
OptionaldeviceIndex: number
Optional device index in case multiple input devices are available.
Determines if the virtual button just getting released. This state is only active for one frame.
OptionaldeviceIndex: number
Optional device index in case multiple input devices are available.
The VirtualButton class implements an abstract HID button. The button can be mapped to multiple
ButtonCodevalues at the same time to handle multiple inputs.