mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2024-12-27 21:41:56 +01:00
Fix gamepad reading
This commit is contained in:
parent
13055af2ca
commit
10b0825be0
@ -76,7 +76,10 @@ 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;
|
||||||
|
}
|
||||||
|
|
||||||
std::string environment_path = "fs:/vol/external01/wiiu/environments/default";
|
std::string environment_path = "fs:/vol/external01/wiiu/environments/default";
|
||||||
if ((btn & VPAD_BUTTON_X) == VPAD_BUTTON_X) {
|
if ((btn & VPAD_BUTTON_X) == VPAD_BUTTON_X) {
|
||||||
|
Loading…
Reference in New Issue
Block a user