NDSSystem: Fix bug where the X, Y, and Debug inputs were being read incorrectly, causing unintended behavior in many games.
Fixes issue #3 and issue #4. (Regression from commit bcc7421.)
This commit is contained in:
parent
6b78dc1f12
commit
7a573e75b5
|
@ -2882,9 +2882,9 @@ static void NDS_applyFinalInput()
|
||||||
}
|
}
|
||||||
|
|
||||||
u16 padExt = (1<<2) | (1<<4) | (1<<5);
|
u16 padExt = (1<<2) | (1<<4) | (1<<5);
|
||||||
if(input.buttons.X) padExt |= 1<<0;
|
if (!input.buttons.X) padExt |= 1<<0;
|
||||||
if(input.buttons.Y) padExt |= 1<<1;
|
if (!input.buttons.Y) padExt |= 1<<1;
|
||||||
if(input.buttons.G) padExt |= 1<<3; //debug button
|
if (!input.buttons.G) padExt |= 1<<3; //debug button
|
||||||
if (!nds.isTouch) padExt |= 1<<6; //~touch
|
if (!nds.isTouch) padExt |= 1<<6; //~touch
|
||||||
if (LidClosed) padExt |= 1<<7;
|
if (LidClosed) padExt |= 1<<7;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue