Skip to content

Commit

Permalink
input: add stopgap mapping for home to right stick click
Browse files Browse the repository at this point in the history
  • Loading branch information
ashquarky committed Nov 30, 2020
1 parent 4f0b90c commit 2369425
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input/Input_wiiu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ std::optional<Input::InputState> 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;
Expand Down
11 changes: 11 additions & 0 deletions input/Input_wiiu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

0 comments on commit 2369425

Please sign in to comment.