mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-24 03:29:22 +01:00
nunchuk fix, add sound sync
This commit is contained in:
parent
463cd3b7e5
commit
ee0e5bf02e
@ -299,13 +299,13 @@ void decodepad (int pad)
|
||||
{
|
||||
/*** we don't want division by zero ***/
|
||||
if (wm_ax > 0 && wm_ay == 0)
|
||||
wp |= WPAD_BUTTON_RIGHT | WPAD_CLASSIC_BUTTON_RIGHT;
|
||||
wp |= WPAD_BUTTON_RIGHT;
|
||||
if (wm_ax < 0 && wm_ay == 0)
|
||||
wp |= WPAD_BUTTON_LEFT | WPAD_CLASSIC_BUTTON_LEFT;
|
||||
wp |= WPAD_BUTTON_LEFT;
|
||||
if (wm_ax == 0 && wm_ay > 0)
|
||||
wp |= WPAD_BUTTON_UP | WPAD_CLASSIC_BUTTON_UP;
|
||||
wp |= WPAD_BUTTON_UP;
|
||||
if (wm_ax == 0 && wm_ay < 0)
|
||||
wp |= WPAD_BUTTON_DOWN | WPAD_CLASSIC_BUTTON_DOWN;
|
||||
wp |= WPAD_BUTTON_DOWN;
|
||||
|
||||
if (wm_ax != 0 && wm_ay != 0)
|
||||
{
|
||||
@ -314,9 +314,9 @@ void decodepad (int pad)
|
||||
if (t >= -2.41421356237 && t < 2.41421356237)
|
||||
{
|
||||
if (wm_ax >= 0)
|
||||
wp |= WPAD_BUTTON_RIGHT | WPAD_CLASSIC_BUTTON_RIGHT;
|
||||
wp |= WPAD_BUTTON_RIGHT;
|
||||
else
|
||||
wp |= WPAD_BUTTON_LEFT | WPAD_CLASSIC_BUTTON_LEFT;
|
||||
wp |= WPAD_BUTTON_LEFT;
|
||||
}
|
||||
|
||||
/*** Recalc up / down ***/
|
||||
@ -324,9 +324,9 @@ void decodepad (int pad)
|
||||
if (t >= -2.41421356237 && t < 2.41421356237)
|
||||
{
|
||||
if (wm_ay >= 0)
|
||||
wp |= WPAD_BUTTON_UP | WPAD_CLASSIC_BUTTON_UP;
|
||||
wp |= WPAD_BUTTON_UP;
|
||||
else
|
||||
wp |= WPAD_BUTTON_DOWN | WPAD_CLASSIC_BUTTON_DOWN;
|
||||
wp |= WPAD_BUTTON_DOWN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -75,10 +75,8 @@ DefaultSettings ()
|
||||
Settings.MultiPlayer5Master = false;
|
||||
Settings.JustifierMaster = false;
|
||||
Settings.ShutdownMaster = false;
|
||||
//Settings.CyclesPercentage = 100; // snes9x 1.50 and earlier
|
||||
Settings.ApplyCheats = true;
|
||||
|
||||
// Specific to snes9x 1.51
|
||||
Settings.BlockInvalidVRAMAccess = true;
|
||||
Settings.HDMATimingHack = 100;
|
||||
|
||||
@ -89,6 +87,8 @@ DefaultSettings ()
|
||||
Settings.Stereo = true;
|
||||
Settings.SixteenBitSound = true;
|
||||
Settings.SoundEnvelopeHeightReading = true;
|
||||
Settings.SoundSync = true;
|
||||
Settings.FixFrequency = false;
|
||||
Settings.DisableSampleCaching = true;
|
||||
Settings.InterpolatedSound = true;
|
||||
Settings.ReverseStereo = false;
|
||||
@ -99,7 +99,7 @@ DefaultSettings ()
|
||||
Settings.SkipFrames = 10;
|
||||
Settings.TurboSkipFrames = 19;
|
||||
Settings.DisplayFrameRate = false;
|
||||
Settings.AutoDisplayMessages = 0; // SNES9x 1.51
|
||||
Settings.AutoDisplayMessages = 0;
|
||||
Settings.InitialInfoStringTimeout = 200; // # frames to display messages for
|
||||
|
||||
// Frame timings in 50hz and 60hz cpu mode
|
||||
|
Loading…
Reference in New Issue
Block a user