• Welcome to MX Bikes Official Forum. Please login or sign up.
 
March 29, 2024, 10:11:56 AM

News:

MX Bikes beta18j available! :)


Disable joystick input

Started by PiBoSo, July 23, 2017, 10:38:04 PM

Previous topic - Next topic

PiBoSo

It is possible to disable an input of a joystick.
This could be useful, for example, to disable a broken potentiometer that is outputting noise.

The file joysticks.cfg is automatically read at startup.
It is possible to add multiple joysticks: "name" is the name of the joystick as it appears in the "Calibration" page of MX Bikes.
The names of the inputs are the same of the calibration page:

x, y, z, rx, ry, rz
slider1, slider2
pov1 to pov4
button1 to button32


The default joysticks.cfg disables the buttons linked to the triggers of the PS4 pad, so that it is possible to assign them as analog inputs.