Skip to main content

vJoyUnit:value_setter()

vJoyUnit:value_setter([value])

This method creates a native-actionn to set a valuev for the operable unit of the vJoy device.
The values that can be configured for each unit are as follows.

Unit TypeValues
Axis-50000 to 50000
Button1 when the button is pressed, 0 when released
POVThe angle in degrees.

Parameters

ParameterTypeDescription
valuenumberValue to be set for the unit.
If this parameter is not specified, the event value is set to the unit.

Return Values

This method returns a native-action.

See Also