mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-22 19:11:48 +01:00
config menu: stop exiting the category for certain items
This commit is contained in:
parent
2b29db165c
commit
958ba503c8
@ -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);
|
||||
|
@ -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;
|
||||
@ -15,12 +17,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
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 = {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user