mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
fixed controller mapping Reset button bug
This commit is contained in:
parent
babac6448a
commit
5aa1e79d75
@ -66,7 +66,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
|||||||
nespadmap[i++] = 0; // insert coin for VS games, insert/eject/select disk for FDS
|
nespadmap[i++] = 0; // insert coin for VS games, insert/eject/select disk for FDS
|
||||||
|
|
||||||
/*** Gamecube controller Padmap ***/
|
/*** Gamecube controller Padmap ***/
|
||||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_GCPAD))
|
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_GCPAD))
|
||||||
{
|
{
|
||||||
i=0;
|
i=0;
|
||||||
btnmap[CTRL_PAD][CTRLR_GCPAD][i++] = PAD_BUTTON_B;
|
btnmap[CTRL_PAD][CTRLR_GCPAD][i++] = PAD_BUTTON_B;
|
||||||
@ -83,7 +83,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Wiimote Padmap ***/
|
/*** Wiimote Padmap ***/
|
||||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_WIIMOTE))
|
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_WIIMOTE))
|
||||||
{
|
{
|
||||||
i=0;
|
i=0;
|
||||||
btnmap[CTRL_PAD][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_1;
|
btnmap[CTRL_PAD][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_1;
|
||||||
@ -100,7 +100,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Classic Controller Padmap ***/
|
/*** Classic Controller Padmap ***/
|
||||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_CLASSIC))
|
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_CLASSIC))
|
||||||
{
|
{
|
||||||
i=0;
|
i=0;
|
||||||
btnmap[CTRL_PAD][CTRLR_CLASSIC][i++] = WPAD_CLASSIC_BUTTON_Y;
|
btnmap[CTRL_PAD][CTRLR_CLASSIC][i++] = WPAD_CLASSIC_BUTTON_Y;
|
||||||
@ -117,7 +117,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Nunchuk + wiimote Padmap ***/
|
/*** Nunchuk + wiimote Padmap ***/
|
||||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_NUNCHUK))
|
if(consoleCtrl == -1 || (consoleCtrl == CTRL_PAD && wiiCtrl == CTRLR_NUNCHUK))
|
||||||
{
|
{
|
||||||
i=0;
|
i=0;
|
||||||
btnmap[CTRL_PAD][CTRLR_NUNCHUK][i++] = WPAD_NUNCHUK_BUTTON_C;
|
btnmap[CTRL_PAD][CTRLR_NUNCHUK][i++] = WPAD_NUNCHUK_BUTTON_C;
|
||||||
@ -134,7 +134,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Zapper : GC controller button mapping ***/
|
/*** Zapper : GC controller button mapping ***/
|
||||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_ZAPPER && wiiCtrl == CTRLR_GCPAD))
|
if(consoleCtrl == -1 || (consoleCtrl == CTRL_ZAPPER && wiiCtrl == CTRLR_GCPAD))
|
||||||
{
|
{
|
||||||
i=0;
|
i=0;
|
||||||
btnmap[CTRL_ZAPPER][CTRLR_GCPAD][i++] = PAD_BUTTON_A; // shoot
|
btnmap[CTRL_ZAPPER][CTRLR_GCPAD][i++] = PAD_BUTTON_A; // shoot
|
||||||
@ -142,7 +142,7 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Zapper : wiimote button mapping ***/
|
/*** Zapper : wiimote button mapping ***/
|
||||||
if(consoleCtrl == 0 || (consoleCtrl == CTRL_ZAPPER && wiiCtrl == CTRLR_WIIMOTE))
|
if(consoleCtrl == -1 || (consoleCtrl == CTRL_ZAPPER && wiiCtrl == CTRLR_WIIMOTE))
|
||||||
{
|
{
|
||||||
i=0;
|
i=0;
|
||||||
btnmap[CTRL_ZAPPER][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_B; // shoot
|
btnmap[CTRL_ZAPPER][CTRLR_WIIMOTE][i++] = WPAD_BUTTON_B; // shoot
|
||||||
|
@ -25,7 +25,7 @@ extern int rumbleRequest[4];
|
|||||||
extern u32 btnmap[2][4][12];
|
extern u32 btnmap[2][4][12];
|
||||||
|
|
||||||
void SetControllers();
|
void SetControllers();
|
||||||
void ResetControls(int cc = 0, int wc = 0);
|
void ResetControls(int cc = -1, int wc = -1);
|
||||||
void ShutoffRumble();
|
void ShutoffRumble();
|
||||||
void DoRumble(int i);
|
void DoRumble(int i);
|
||||||
s8 WPAD_StickX(u8 chan,u8 right);
|
s8 WPAD_StickX(u8 chan,u8 right);
|
||||||
|
Loading…
Reference in New Issue
Block a user