diff --git a/python-src/batocera-launch/batocera_launch/devices/evmapy.py b/python-src/batocera-launch/batocera_launch/devices/evmapy.py index 1eebec06be3..c4364ebdd8f 100644 --- a/python-src/batocera-launch/batocera_launch/devices/evmapy.py +++ b/python-src/batocera-launch/batocera_launch/devices/evmapy.py @@ -483,9 +483,9 @@ def __write_controller_config(self, controller: Controller, keys_actions: _KeysA axis_id = 'BASE' axis_name = 'Y' if input.name == 'up': - absbasey_positive = int(input.value) >= 0 - else: absbasey_positive = int(input.value) < 0 + else: + absbasey_positive = int(input.value) >= 0 elif input.name == 'left' or input.name == 'right': axis_id = 'BASE' axis_name = 'X' @@ -636,7 +636,7 @@ def __get_mapping_for_triggers( mapping['left'] = 'ABSBASEX:max' mapping['right'] = 'ABSBASEX:min' - if 'ABSBASEX:min' in known_button_names: + if 'ABSBASEY:min' in known_button_names: if absbasey_positive: mapping['down'] = 'ABSBASEY:max' mapping['up'] = 'ABSBASEY:min'