diff options
| author | 2023-01-02 09:51:29 -0500 | |
|---|---|---|
| committer | 2023-01-02 09:51:29 -0500 | |
| commit | 6804a43f4958846352ef14cecf2f2d9d22d127f0 (patch) | |
| tree | d7ef69a2662f0633eb88e6ff28f2e19542b5b8e1 | |
| parent | Merge pull request #9537 from abouvier/cmake-almost-quiet (diff) | |
| parent | TAS: Record sanitized instead of raw stick inputs (diff) | |
| download | yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.gz yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.xz yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.zip | |
Merge pull request #9540 from MonsterDruide1/tas-sanitized-record
TAS: Record sanitized instead of raw stick inputs
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/debugger/controller.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu/debugger/controller.cpp b/src/yuzu/debugger/controller.cpp index e4bf16a04..19f3775a3 100644 --- a/src/yuzu/debugger/controller.cpp +++ b/src/yuzu/debugger/controller.cpp | |||
| @@ -93,7 +93,7 @@ void ControllerDialog::ControllerUpdate(Core::HID::ControllerTriggerType type) { | |||
| 93 | case Core::HID::ControllerTriggerType::Button: | 93 | case Core::HID::ControllerTriggerType::Button: |
| 94 | case Core::HID::ControllerTriggerType::Stick: { | 94 | case Core::HID::ControllerTriggerType::Stick: { |
| 95 | const auto buttons_values = controller->GetButtonsValues(); | 95 | const auto buttons_values = controller->GetButtonsValues(); |
| 96 | const auto stick_values = controller->GetSticksValues(); | 96 | const auto stick_values = controller->GetSticks(); |
| 97 | u64 buttons = 0; | 97 | u64 buttons = 0; |
| 98 | std::size_t index = 0; | 98 | std::size_t index = 0; |
| 99 | for (const auto& button : buttons_values) { | 99 | for (const auto& button : buttons_values) { |
| @@ -101,12 +101,12 @@ void ControllerDialog::ControllerUpdate(Core::HID::ControllerTriggerType type) { | |||
| 101 | index++; | 101 | index++; |
| 102 | } | 102 | } |
| 103 | const InputCommon::TasInput::TasAnalog left_axis = { | 103 | const InputCommon::TasInput::TasAnalog left_axis = { |
| 104 | .x = stick_values[Settings::NativeAnalog::LStick].x.value, | 104 | .x = stick_values.left.x / 32767.f, |
| 105 | .y = stick_values[Settings::NativeAnalog::LStick].y.value, | 105 | .y = stick_values.left.y / 32767.f, |
| 106 | }; | 106 | }; |
| 107 | const InputCommon::TasInput::TasAnalog right_axis = { | 107 | const InputCommon::TasInput::TasAnalog right_axis = { |
| 108 | .x = stick_values[Settings::NativeAnalog::RStick].x.value, | 108 | .x = stick_values.right.x / 32767.f, |
| 109 | .y = stick_values[Settings::NativeAnalog::RStick].y.value, | 109 | .y = stick_values.right.y / 32767.f, |
| 110 | }; | 110 | }; |
| 111 | input_subsystem->GetTas()->RecordInput(buttons, left_axis, right_axis); | 111 | input_subsystem->GetTas()->RecordInput(buttons, left_axis, right_axis); |
| 112 | break; | 112 | break; |