Skip to content

Commit

Permalink
config menu: stop exiting the category for certain items
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Apr 28, 2024
1 parent 2b29db1 commit 958ba50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions source/utils/config/ConfigUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ void ConfigUtils::displayMenu() {
baseInput.lastData = baseInput.data;
}

baseInput.process();

WUPSConfigSimplePadData simpleData;
simpleData.buttons_d = convertInputs(baseInput.data.buttons_d);
simpleData.buttons_r = convertInputs(baseInput.data.buttons_r);
Expand Down
8 changes: 2 additions & 6 deletions source/utils/input/CombinedInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
class CombinedInput : public Input {
public:
void combine(const Input &b) {
data.buttons_d |= b.data.buttons_d;
data.buttons_r |= b.data.buttons_r;
data.buttons_h |= b.data.buttons_h;
if (!data.touched) {
data.touched = b.data.touched;
Expand All @@ -15,12 +17,6 @@ class CombinedInput : public Input {
}
}

void process() {
data.buttons_d |= (data.buttons_h & (~lastData.buttons_h));
data.buttons_r |= (lastData.buttons_h & (~data.buttons_h));
lastData.buttons_h = data.buttons_h;
}

void reset() {
data = {};
}
Expand Down

0 comments on commit 958ba50

Please sign in to comment.