mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
InputManager: Fix parsing sensor/accelerometer binding
This commit is contained in:
parent
e9126aeeb8
commit
c656f5cbd7
|
@ -553,7 +553,7 @@ std::optional<InputBindingKey> InputManager::ParseSensorKey(const std::string_vi
|
|||
key.source_subtype = InputSubclass::SensorAccelerometer;
|
||||
key.data = i;
|
||||
|
||||
const std::string_view dir_part(sub_binding.substr(std::strlen(s_pointer_axis_names[i])));
|
||||
const std::string_view dir_part(sub_binding.substr(std::strlen(s_sensor_accelerometer_names[i])));
|
||||
if (dir_part == "+")
|
||||
key.negative = false;
|
||||
else if (dir_part == "-")
|
||||
|
|
Loading…
Reference in a new issue