evdev-joystick --version (return code: 0)
evdev-joystick: unrecognized option '--version'
evdev-joystick --help (return code: 0)
Usage:
--help, --h The message you're now reading
--listdevs, --l List all joystick devices found
--showcal, --s [path] Show current calibration for joystick device
--evdev, --e [path] Set the joystick device to modify
--minimum, --m [val] Change minimum for current joystick
--maximum, --M [val] Change maximum for current joystick
--deadzone, --d [val] Change deadzone for current joystick
--fuzz, --f [val] Change fuzz for current joystick
--axis, --a [val] The axis to modify for current joystick (by default, all axes)
To see calibration information:
evdev-joystick [ --s /path/to/event/device/file ]
To set the deadzone values:
evdev-joystick [ --e /path/to/event/device/file --d deadzone_value [ --a axis_index ] ]
To set the minimum and maximum range values:
evdev-joystick [ --e /path/to/event/device/file --m minimum_value --M maximum_value [ --a axis_index ] ]
Example:
I want to see the calibration values of my event managed joystick:
evdev-joystick --s /dev/input/event6
Supported Absolute axes:
Absolute axis 0x00 (0) (X Axis) (value: 387, min: 0, max: 16383, flatness: 1023 (=6.24%), fuzz: 63)
Absolute axis 0x01 (1) (Y Axis) (value: 216, min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)
Absolute axis 0x02 (2) (Z Axis) (value: 0, min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)
Absolute axis 0x05 (5) (Z Rate Axis) (value: 101, min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)
Absolute axis 0x10 (16) (Hat zero, x axis) (value: 0, min: -1, max: 1, flatness: 0 (=0.00%), fuzz: 0)
Absolute axis 0x11 (17) (Hat zero, y axis) (value: 0, min: -1, max: 1, flatness: 0 (=0.00%), fuzz: 0)
I want to get rid of the deadzone on all axes on my joystick:
evdev-joystick --e /dev/input/event6 --d 0