mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 08:36:38 -04:00
Wii/GameCube: Try to fix input not being recognised
This commit is contained in:
parent
0fbe0281e3
commit
7d0bb7f363
@ -140,12 +140,10 @@ static void ProcessPAD_Buttons(int port, int mods) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void ProcessPADInput(PADStatus* pad, int i, float delta) {
|
static void ProcessPADInput(PADStatus* pad, int i, float delta) {
|
||||||
PADStatus pads[PAD_CHANMAX];
|
int error = pad->err;
|
||||||
PAD_Read(pads);
|
|
||||||
int error = pads[i].err;
|
|
||||||
|
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
gc_pads[i] = pads[i]; // new state arrived
|
gc_pads[i] = *pad; // new state arrived
|
||||||
} else if (error == PAD_ERR_TRANSFER) {
|
} else if (error == PAD_ERR_TRANSFER) {
|
||||||
// usually means still busy transferring state - use last state
|
// usually means still busy transferring state - use last state
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user