This is a server program based on vJoy that needs to be used together with nagi-joy-esp32. It receives controller data from nagi-joy-esp32 via the UDP protocol and forwards the data to vJoy according to the configuration file, implementing various functions of the game controller.
- Button
- Axis
- POV Hat
The configuration file is located at conf/config.toml, and its definition is as follows.
[service] // Define the UDP listening IP and port
host = "0.0.0.0"
port = 8888
[joystick] // Specify which vJoy controller to send data to (1 is the first controller)
index = 1
[[joystick.buttons]] // Configure specific buttons, can invert button state
index = 9
inverted = true
[[joystick.axes]] // Configure specific axes, set min, max values, and whether to invert the axis
index = 0
inverted = true
max = 3280
min = 4