diff options
Diffstat (limited to 'src/input_common/drivers/tas_input.cpp')
| -rw-r--r-- | src/input_common/drivers/tas_input.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input_common/drivers/tas_input.cpp b/src/input_common/drivers/tas_input.cpp index 1a38616b4..19d8ccae3 100644 --- a/src/input_common/drivers/tas_input.cpp +++ b/src/input_common/drivers/tas_input.cpp | |||
| @@ -238,13 +238,13 @@ TasAnalog Tas::ReadCommandAxis(const std::string& line) const { | |||
| 238 | return {x, y}; | 238 | return {x, y}; |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | u64 Tas::ReadCommandButtons(const std::string& data) const { | 241 | u64 Tas::ReadCommandButtons(const std::string& line) const { |
| 242 | std::stringstream button_text(data); | 242 | std::stringstream button_text(line); |
| 243 | std::string line; | 243 | std::string button_line; |
| 244 | u64 buttons = 0; | 244 | u64 buttons = 0; |
| 245 | while (std::getline(button_text, line, ';')) { | 245 | while (std::getline(button_text, button_line, ';')) { |
| 246 | for (auto [text, tas_button] : text_to_tas_button) { | 246 | for (auto [text, tas_button] : text_to_tas_button) { |
| 247 | if (text == line) { | 247 | if (text == button_line) { |
| 248 | buttons |= static_cast<u64>(tas_button); | 248 | buttons |= static_cast<u64>(tas_button); |
| 249 | break; | 249 | break; |
| 250 | } | 250 | } |