Creates a new virtual button registered with a single ButtonCode.
Unique name used to access the virtual button.
OptionaldeadZone: numberOptionalsensitivity: numberOptionalinvert: booleanOptionalcategory: 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.
Gets the category of the button.
Value below which to ignore virtualAxis value and consider it 0.
Should the virtualAxis be inverted.
If enabled, virtualAxis values will be normalized to [-1, 1] range. Most axes already come in normalized form and this value will not affect such axes. Some axes, like mouse movement are not normalized by default and will instead report relative movement. By enabling this you will normalize such axes to [-1, 1] range.
Gets the name of the button.
Higher sensitivity means the virtualAxis will more easily reach its maximum values.
Returns normalized value for the specified input axis. Returned value will usually be in [-1.0, 1.0] range, but can be outside the range for devices with unbound axes (for example mouse).
OptionaldeviceIndex: numberOptional device index in case multiple input devices are available.
The VirtualAxis class implements an abstract HID axis.