From 2369425ff6be561cd69d77134458e1bf5f99aaa9 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Tue, 1 Dec 2020 10:44:17 +1100 Subject: [PATCH] input: add stopgap mapping for home to right stick click --- input/Input_wiiu.cpp | 4 ++-- input/Input_wiiu.hpp | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/input/Input_wiiu.cpp b/input/Input_wiiu.cpp index 3cbea38..d772ee9 100644 --- a/input/Input_wiiu.cpp +++ b/input/Input_wiiu.cpp @@ -24,11 +24,11 @@ std::optional Input::Get(Gfx::Rect touch_area) { input.pro.press(map.ds_btn); } } - /*for (auto map : wiiu_buttons_sys_map) { + for (auto map : wiiu_buttons_sys_map) { if ((status.hold & map.drc_btn) == map.drc_btn) { input.buttons_sys.press(map.ds_btn); } - }*/ + } { using namespace std::numbers; diff --git a/input/Input_wiiu.hpp b/input/Input_wiiu.hpp index 6cd3d2b..8c5ec07 100755 --- a/input/Input_wiiu.hpp +++ b/input/Input_wiiu.hpp @@ -70,3 +70,14 @@ const static struct { .drc_btn = VPAD_BUTTON_ZR, }, }; + +const static struct { + Input::SButtons ds_btn; + uint32_t drc_btn; +} wiiu_buttons_sys_map[] = { + { + //stopgap until real input mapping and/or menus are a thing + .ds_btn = Input::DS_BUTTON_HOME, + .drc_btn = VPAD_BUTTON_STICK_R, + }, +};