From c656f5cbd7995bfdc40ba33e7f7a3e8f1a43d014 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 15 Aug 2022 23:53:52 +1000 Subject: [PATCH] InputManager: Fix parsing sensor/accelerometer binding --- src/frontend-common/input_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/input_manager.cpp b/src/frontend-common/input_manager.cpp index 00c4bcc82..7223d0acb 100644 --- a/src/frontend-common/input_manager.cpp +++ b/src/frontend-common/input_manager.cpp @@ -553,7 +553,7 @@ std::optional 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 == "-")