mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
fixed controller mapping Reset button bug
This commit is contained in:
parent
5515cde35c
commit
d59ec81978
@ -62,7 +62,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
{
|
||||
int i;
|
||||
/*** Gamecube controller Padmap ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_GCPAD))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_GCPAD))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_PAD][CTRLR_GCPAD][i++] = PAD_BUTTON_A;
|
||||
@ -80,7 +80,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Wiimote Padmap ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_WIIMOTE))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_WIIMOTE))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_PAD][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_B;
|
||||
@ -98,7 +98,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Classic Controller Padmap ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_CLASSIC))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_CLASSIC))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_PAD][CTRLR_CLASSIC][i++] = WPAD_CLASSIC_BUTTON_A;
|
||||
@ -116,7 +116,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Nunchuk + wiimote Padmap ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_NUNCHUK))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_NUNCHUK))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_PAD][CTRLR_NUNCHUK][i++] = WPAD_BUTTON_A;
|
||||
@ -134,7 +134,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Superscope : GC controller button mapping ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_SCOPE && wiiCtrl == CTRLR_GCPAD))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_SCOPE && wiiCtrl == CTRLR_GCPAD))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_SCOPE][CTRLR_GCPAD][i++] = PAD_BUTTON_A;
|
||||
@ -146,7 +146,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Superscope : wiimote button mapping ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_SCOPE && wiiCtrl == CTRLR_WIIMOTE))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_SCOPE && wiiCtrl == CTRLR_WIIMOTE))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_SCOPE][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_B;
|
||||
@ -158,7 +158,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Mouse : GC controller button mapping ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_MOUSE && wiiCtrl == CTRLR_GCPAD))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_MOUSE && wiiCtrl == CTRLR_GCPAD))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_MOUSE][CTRLR_GCPAD][i++] = PAD_BUTTON_A;
|
||||
@ -166,7 +166,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Mouse : wiimote button mapping ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_MOUSE && wiiCtrl == CTRLR_WIIMOTE))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_MOUSE && wiiCtrl == CTRLR_WIIMOTE))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_MOUSE][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_A;
|
||||
@ -174,7 +174,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Justifier : GC controller button mapping ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_JUST && wiiCtrl == CTRLR_GCPAD))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_JUST && wiiCtrl == CTRLR_GCPAD))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_JUST][CTRLR_GCPAD][i++] = PAD_BUTTON_B;
|
||||
@ -183,7 +183,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
||||
}
|
||||
|
||||
/*** Justifier : wiimote button mapping ***/
|
||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_JUST && wiiCtrl == CTRLR_WIIMOTE))
|
||||
if(consoleCtrl == -1 || (consoleCtrl == CTRL_JUST && wiiCtrl == CTRLR_WIIMOTE))
|
||||
{
|
||||
i=0;
|
||||
btnmap[CTRL_JUST][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_B;
|
||||
|
@ -24,7 +24,7 @@
|
||||
extern u32 btnmap[4][4][12];
|
||||
extern int rumbleRequest[4];
|
||||
|
||||
void ResetControls(int cc = 0, int wc = 0);
|
||||
void ResetControls(int cc = -1, int wc = -1);
|
||||
void ShutoffRumble();
|
||||
void DoRumble(int i);
|
||||
s8 WPAD_Stick(u8 chan, u8 right, int axis);
|
||||
|
Loading…
Reference in New Issue
Block a user