mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-26 13:49:00 +02:00
EVEN MORE FIXES
This commit is contained in:
parent
4519450d48
commit
a8b1ad7ea8
2 changed files with 47 additions and 82 deletions
|
|
@ -1,3 +1,6 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
|
|
@ -55,11 +58,11 @@ void ControllerNavigation::ControllerUpdateEvent(Core::HID::ControllerTriggerTyp
|
|||
|
||||
void ControllerNavigation::ControllerUpdateButton() {
|
||||
const auto controller_type = player1_controller->GetNpadStyleIndex();
|
||||
const auto& player1_buttons = player1_controller->GetButtonsValues();
|
||||
const auto& handheld_buttons = handheld_controller->GetButtonsValues();
|
||||
const auto& player1_btns = player1_controller->GetButtonsValues();
|
||||
const auto& handheld_btns = handheld_controller->GetButtonsValues();
|
||||
|
||||
for (std::size_t i = 0; i < player1_buttons.size(); ++i) {
|
||||
const bool button = player1_buttons[i].value || handheld_buttons[i].value;
|
||||
for (std::size_t i = 0; i < player1_btns.size(); ++i) {
|
||||
const bool button = player1_btns[i].value || handheld_btns[i].value;
|
||||
// Trigger only once
|
||||
button_values[i].locked = button == button_values[i].value;
|
||||
button_values[i].value = button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue