diff options
| author | 2021-07-05 20:58:52 -0500 | |
|---|---|---|
| committer | 2021-09-18 23:22:48 +0200 | |
| commit | 33a1d790e8a5f67c73d0eef4a141f936345f104f (patch) | |
| tree | 16138c61b831ca3a6016fbb31fe183fbc557c7dd /src/input_common/tas/tas_input.cpp | |
| parent | input_common/tas: Add swap controller (diff) | |
| download | yuzu-33a1d790e8a5f67c73d0eef4a141f936345f104f.tar.gz yuzu-33a1d790e8a5f67c73d0eef4a141f936345f104f.tar.xz yuzu-33a1d790e8a5f67c73d0eef4a141f936345f104f.zip | |
input_common/tas: Document the main class
Diffstat (limited to 'src/input_common/tas/tas_input.cpp')
| -rw-r--r-- | src/input_common/tas/tas_input.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_common/tas/tas_input.cpp b/src/input_common/tas/tas_input.cpp index aceb13adc..877d35088 100644 --- a/src/input_common/tas/tas_input.cpp +++ b/src/input_common/tas/tas_input.cpp | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | namespace TasInput { | 15 | namespace TasInput { |
| 16 | 16 | ||
| 17 | // Supported keywords and buttons from a TAS file | ||
| 17 | constexpr std::array<std::pair<std::string_view, TasButton>, 20> text_to_tas_button = { | 18 | constexpr std::array<std::pair<std::string_view, TasButton>, 20> text_to_tas_button = { |
| 18 | std::pair{"KEY_A", TasButton::BUTTON_A}, | 19 | std::pair{"KEY_A", TasButton::BUTTON_A}, |
| 19 | {"KEY_B", TasButton::BUTTON_B}, | 20 | {"KEY_B", TasButton::BUTTON_B}, |
| @@ -214,7 +215,7 @@ void Tas::UpdateThread() { | |||
| 214 | } | 215 | } |
| 215 | } | 216 | } |
| 216 | } else { | 217 | } else { |
| 217 | is_running = Settings::values.tas_loop; | 218 | is_running = Settings::values.tas_loop.GetValue(); |
| 218 | current_command = 0; | 219 | current_command = 0; |
| 219 | tas_data.fill({}); | 220 | tas_data.fill({}); |
| 220 | if (!is_running) { | 221 | if (!is_running) { |