fix bug with P2 snespad getting its input ORed with P1 (and reduce noise)
This commit is contained in:
parent
a4fecfa67b
commit
7d49d00616
|
@ -256,11 +256,12 @@ void UpdateGamepad(bool snes)
|
|||
int wgs = wg;
|
||||
if(snes)
|
||||
{
|
||||
JS = 0;
|
||||
wgs = 0;
|
||||
for(int x=0;x<12;x++)
|
||||
if(DTestButton(&GamePadConfig[wg][x]))
|
||||
JS|=(1<<x)<<(wgs<<3);
|
||||
printf("%d %d\n",wg,JS);
|
||||
//printf("%d %d\n",wg,JS); //useful debugging
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue