mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-24 03:29:22 +01:00
small fixes
This commit is contained in:
parent
d7b709ca0b
commit
19a691e68d
@ -266,6 +266,9 @@ SetupPads()
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
void ShutoffRumble()
|
void ShutoffRumble()
|
||||||
{
|
{
|
||||||
|
if(CONF_GetPadMotorMode() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
for(int i=0;i<4;i++)
|
for(int i=0;i<4;i++)
|
||||||
{
|
{
|
||||||
WPAD_Rumble(i, 0);
|
WPAD_Rumble(i, 0);
|
||||||
@ -279,7 +282,8 @@ void ShutoffRumble()
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
void DoRumble(int i)
|
void DoRumble(int i)
|
||||||
{
|
{
|
||||||
if(!GCSettings.Rumble) return;
|
if(CONF_GetPadMotorMode() == 0 || !GCSettings.Rumble) return;
|
||||||
|
|
||||||
if(rumbleRequest[i] && rumbleCount[i] < 3)
|
if(rumbleRequest[i] && rumbleCount[i] < 3)
|
||||||
{
|
{
|
||||||
WPAD_Rumble(i, 1); // rumble on
|
WPAD_Rumble(i, 1); // rumble on
|
||||||
|
@ -145,11 +145,13 @@ void ExitApp()
|
|||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
void ShutdownCB()
|
void ShutdownCB()
|
||||||
{
|
{
|
||||||
ShutdownRequested = 1;
|
if(!inNetworkInit)
|
||||||
|
ShutdownRequested = 1;
|
||||||
}
|
}
|
||||||
void ResetCB()
|
void ResetCB()
|
||||||
{
|
{
|
||||||
ResetRequested = 1;
|
if(!inNetworkInit)
|
||||||
|
ResetRequested = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user