evdev: add analog to dpad option (#3551)

* evdev Analog to digital option

* rewrite conditions on axis rotation

* a bit of cleanup
This commit is contained in:
toccata10 2017-10-19 12:41:02 +02:00 committed by kd-11
parent 200557c036
commit b90a7dc66a
2 changed files with 48 additions and 16 deletions

View file

@ -46,7 +46,8 @@ struct evdev_joystick_config final : cfg::node
cfg::_bool axistrigger{this, "Z axis triggers", true};
cfg::_bool squirclejoysticks{this, "Squircle Joysticks", true};
cfg::int32 squirclefactor{this, "Squircle Factor", 5000};
cfg::int32 deadzone{this, "Deadzone", 10};
cfg::int32 deadzone{this, "Deadzone", 10};
cfg::_bool left_analog_to_dpad{this, "Left Analog to Dpad", false};
bool load()
{