Skip to content
Snippets Groups Projects
Unverified Commit bee5a7ac authored by Mat M's avatar Mat M Committed by GitHub
Browse files

Merge pull request #1779 from DarkLordZach/debug-pad-unmapped

debug_pad: Avoid loading input for nonexistent buttons (Home and Screenshot)
parents 50d2abaa b358e885
No related branches found
No related tags found
No related merge requests found
...@@ -71,8 +71,9 @@ void Controller_DebugPad::OnUpdate(u8* data, std::size_t size) { ...@@ -71,8 +71,9 @@ void Controller_DebugPad::OnUpdate(u8* data, std::size_t size) {
void Controller_DebugPad::OnLoadInputDevices() { void Controller_DebugPad::OnLoadInputDevices() {
std::transform(Settings::values.debug_pad_buttons.begin(), std::transform(Settings::values.debug_pad_buttons.begin(),
Settings::values.debug_pad_buttons.end(), buttons.begin(), Settings::values.debug_pad_buttons.begin() +
Input::CreateDevice<Input::ButtonDevice>); Settings::NativeButton::NUM_BUTTONS_HID,
buttons.begin(), Input::CreateDevice<Input::ButtonDevice>);
std::transform(Settings::values.debug_pad_analogs.begin(), std::transform(Settings::values.debug_pad_analogs.begin(),
Settings::values.debug_pad_analogs.end(), analogs.begin(), Settings::values.debug_pad_analogs.end(), analogs.begin(),
Input::CreateDevice<Input::AnalogDevice>); Input::CreateDevice<Input::AnalogDevice>);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment