summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-01-02 15:51:29 +0100
committerGitHub <noreply@github.com>2023-01-02 15:51:29 +0100
commit6804a43f4958846352ef14cecf2f2d9d22d127f0 (patch)
treed7ef69a2662f0633eb88e6ff28f2e19542b5b8e1 /src
parentMerge pull request #9537 from abouvier/cmake-almost-quiet (diff)
parentTAS: Record sanitized instead of raw stick inputs (diff)
downloadyuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar
yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.gz
yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.bz2
yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.lz
yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.xz
yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.tar.zst
yuzu-6804a43f4958846352ef14cecf2f2d9d22d127f0.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/debugger/controller.cpp10
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) {
case Core::HID::ControllerTriggerType::Button:
case Core::HID::ControllerTriggerType::Stick: {
const auto buttons_values = controller->GetButtonsValues();
- const auto stick_values = controller->GetSticksValues();
+ const auto stick_values = controller->GetSticks();
u64 buttons = 0;
std::size_t index = 0;
for (const auto& button : buttons_values) {
@@ -101,12 +101,12 @@ void ControllerDialog::ControllerUpdate(Core::HID::ControllerTriggerType type) {
index++;
}
const InputCommon::TasInput::TasAnalog left_axis = {
- .x = stick_values[Settings::NativeAnalog::LStick].x.value,
- .y = stick_values[Settings::NativeAnalog::LStick].y.value,
+ .x = stick_values.left.x / 32767.f,
+ .y = stick_values.left.y / 32767.f,
};
const InputCommon::TasInput::TasAnalog right_axis = {
- .x = stick_values[Settings::NativeAnalog::RStick].x.value,
- .y = stick_values[Settings::NativeAnalog::RStick].y.value,
+ .x = stick_values.right.x / 32767.f,
+ .y = stick_values.right.y / 32767.f,
};
input_subsystem->GetTas()->RecordInput(buttons, left_axis, right_axis);
break;