mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-02-02 21:22:40 +01:00
reset SSG-EG swap flag (YM2612 MAME), Mouse IR support minor fixes
This commit is contained in:
parent
f674126a66
commit
19cede04f6
@ -494,7 +494,7 @@ static void wpad_update(s8 num, u8 i, u32 exp)
|
||||
/* wiimote IR */
|
||||
struct ir_t ir;
|
||||
WPAD_IR(num, &ir);
|
||||
//if (ir.valid)
|
||||
if (ir.valid)
|
||||
{
|
||||
input.analog[2][0] = ir.x - old_x;
|
||||
if (input.analog[2][0] > 256)
|
||||
|
@ -925,6 +925,9 @@ INLINE void advance_eg_channel(FM_SLOT *SLOT)
|
||||
i = 4; /* four operators per channel */
|
||||
do
|
||||
{
|
||||
/* reset swap_flag (EkeEke) */
|
||||
swap_flag = 0;
|
||||
|
||||
switch(SLOT->state)
|
||||
{
|
||||
case EG_ATT: /* attack phase */
|
||||
@ -1053,6 +1056,7 @@ INLINE void advance_eg_channel(FM_SLOT *SLOT)
|
||||
in next instruction */
|
||||
SLOT->vol_out = out;
|
||||
|
||||
/* reverse SLOT inversion flag if required */
|
||||
SLOT->ssgn ^= swap_flag;
|
||||
|
||||
SLOT++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user