evdev: Add maple devices 1 and 2 to mapping & cfg

This commit is contained in:
Christoph "baka0815" Schwerdtfeger 2018-08-13 12:59:51 +02:00 committed by Ender's Games
parent 62837f4db0
commit 17d9159b82
2 changed files with 5 additions and 1 deletions

View File

@ -192,7 +192,9 @@
mf.get_bool("compat", "axis_x_inverted", false), mf.get_bool("compat", "axis_x_inverted", false),
mf.get_bool("compat", "axis_y_inverted", false), mf.get_bool("compat", "axis_y_inverted", false),
mf.get_bool("compat", "axis_trigger_left_inverted", false), mf.get_bool("compat", "axis_trigger_left_inverted", false),
mf.get_bool("compat", "axis_trigger_right_inverted", false) mf.get_bool("compat", "axis_trigger_right_inverted", false),
mf.get_int("dreamcast", "maple_device1", -1),
mf.get_int("dreamcast", "maple_device2", -1)
}; };
return mapping; return mapping;
} }

View File

@ -36,6 +36,8 @@ struct EvdevControllerMapping
const bool Axis_Analog_Y_Inverted; const bool Axis_Analog_Y_Inverted;
const bool Axis_Trigger_Left_Inverted; const bool Axis_Trigger_Left_Inverted;
const bool Axis_Trigger_Right_Inverted; const bool Axis_Trigger_Right_Inverted;
const int Maple_Device1;
const int Maple_Device2;
}; };
struct EvdevAxisData struct EvdevAxisData