summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Mat M2018-11-22 13:41:32 -0500
committerGravatar GitHub2018-11-22 13:41:32 -0500
commitbee5a7acb1ba2d7312fa11dd663a355733c0858d (patch)
treee1f914eebd8a94b4f59f33687e00f18eb254aad4 /src
parentMerge pull request #1775 from bunnei/blend-eq (diff)
parentdebug_pad: Avoid loading input for nonexistent buttons (Home and Screenshot) (diff)
downloadyuzu-bee5a7acb1ba2d7312fa11dd663a355733c0858d.tar.gz
yuzu-bee5a7acb1ba2d7312fa11dd663a355733c0858d.tar.xz
yuzu-bee5a7acb1ba2d7312fa11dd663a355733c0858d.zip
Merge pull request #1779 from DarkLordZach/debug-pad-unmapped
debug_pad: Avoid loading input for nonexistent buttons (Home and Screenshot)
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/hid/controllers/debug_pad.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/debug_pad.cpp b/src/core/hle/service/hid/controllers/debug_pad.cpp
index e76c83aee..c22357d8c 100644
--- a/src/core/hle/service/hid/controllers/debug_pad.cpp
+++ b/src/core/hle/service/hid/controllers/debug_pad.cpp
@@ -71,8 +71,9 @@ void Controller_DebugPad::OnUpdate(u8* data, std::size_t size) {
71 71
72void Controller_DebugPad::OnLoadInputDevices() { 72void Controller_DebugPad::OnLoadInputDevices() {
73 std::transform(Settings::values.debug_pad_buttons.begin(), 73 std::transform(Settings::values.debug_pad_buttons.begin(),
74 Settings::values.debug_pad_buttons.end(), buttons.begin(), 74 Settings::values.debug_pad_buttons.begin() +
75 Input::CreateDevice<Input::ButtonDevice>); 75 Settings::NativeButton::NUM_BUTTONS_HID,
76 buttons.begin(), Input::CreateDevice<Input::ButtonDevice>);
76 std::transform(Settings::values.debug_pad_analogs.begin(), 77 std::transform(Settings::values.debug_pad_analogs.begin(),
77 Settings::values.debug_pad_analogs.end(), analogs.begin(), 78 Settings::values.debug_pad_analogs.end(), analogs.begin(),
78 Input::CreateDevice<Input::AnalogDevice>); 79 Input::CreateDevice<Input::AnalogDevice>);