vJoyUnit:set_value()
vJoyUnit:set_value(value)
This method sets a value for the operable unit of the vJoy device.
The values that can be configured for each unit are as follows.
| Unit Type | Values |
|---|---|
| Axis | -50000 to 50000 |
| Button | 1 when the button is pressed, 0 when released |
| POV | The angle in degrees. |
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | Value to be set for the unit. |
Return Values
This method doesn't return any value.