aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/controller.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-07-25 20:52:19 -0500
committerMonsterDruide1 <5958456@gmail.com>2021-09-18 23:23:03 +0200
commit75d8ec1e9f474ce6c2bfc0b8ebe574ca44f9f3d8 (patch)
treea11be198f5f4933a68c8cc5cfc183e08c3b01fcb /src/yuzu/debugger/controller.cpp
parent5401cf6eb583092ed144d0f30fb6221a0ab25fed (diff)
UI: Relocate tas menu and add brief description
Diffstat (limited to 'src/yuzu/debugger/controller.cpp')
-rw-r--r--src/yuzu/debugger/controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/debugger/controller.cpp b/src/yuzu/debugger/controller.cpp
index 296000ed5a..5a844409b1 100644
--- a/src/yuzu/debugger/controller.cpp
+++ b/src/yuzu/debugger/controller.cpp
@@ -78,7 +78,7 @@ void ControllerDialog::InputController(ControllerInput input) {
u32 buttons = 0;
int index = 0;
for (bool btn : input.button_values) {
- buttons += (btn ? 1 : 0) << index;
+ buttons |= (btn ? 1U : 0U) << index;
index++;
}
input_subsystem->GetTas()->RecordInput(buttons, input.axis_values);