mirror of
https://github.com/wiiu-env/PayloadFromRPX.git
synced 2024-11-27 23:54:13 +01:00
Only use the VPAD values if the reading was successful
This commit is contained in:
parent
4c82b93cd7
commit
544ec49785
@ -59,7 +59,11 @@ int main(int argc, char **argv) {
|
|||||||
VPADStatus vpad_data;
|
VPADStatus vpad_data;
|
||||||
VPADRead(VPAD_CHAN_0, &vpad_data, 1, &err);
|
VPADRead(VPAD_CHAN_0, &vpad_data, 1, &err);
|
||||||
|
|
||||||
uint32_t btn = vpad_data.hold | vpad_data.trigger;
|
uint32_t btn = 0;
|
||||||
|
if(err == VPAD_READ_SUCCESS){
|
||||||
|
btn = vpad_data.hold | vpad_data.trigger;
|
||||||
|
}
|
||||||
|
|
||||||
bool loadWithoutHacks = false;
|
bool loadWithoutHacks = false;
|
||||||
bool kernelDone = false;
|
bool kernelDone = false;
|
||||||
bool skipKernel = false;
|
bool skipKernel = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user