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