mirror of
https://github.com/wiiu-env/PayloadLoaderInstaller.git
synced 2024-11-13 05:35:06 +01:00
Input changes
This commit is contained in:
parent
0c2be05b1b
commit
6f42e52d20
@ -11,6 +11,12 @@ public:
|
||||
//!Destructor
|
||||
virtual ~Input() = default;
|
||||
|
||||
void combine(const Input& b) {
|
||||
data.buttons_d |= b.data.buttons_d;
|
||||
data.buttons_h |= b.data.buttons_h;
|
||||
data.buttons_r |= b.data.buttons_r;
|
||||
}
|
||||
|
||||
enum eButtons {
|
||||
BUTTON_NONE = 0x0000,
|
||||
VPAD_TOUCH = 0x80000000,
|
||||
|
@ -47,11 +47,11 @@ int main_loop() {
|
||||
DEBUG_FUNCTION_LINE("Entering main loop");
|
||||
while (WHBProcIsRunning()) {
|
||||
vpadInput.update(1280, 720);
|
||||
state.update(&vpadInput);
|
||||
for (int i = 0; i < 4; i++) {
|
||||
wpadInputs[i].update(1280, 720);
|
||||
state.update(&wpadInputs[i]);
|
||||
vpadInput.combine(wpadInputs[i]);
|
||||
}
|
||||
state.update(&vpadInput);
|
||||
state.render();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user