OSDN Git Service

[VM][FM7][JOYSTICK] Fix OPN:PORTA value on reset.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 15 May 2017 20:19:28 +0000 (05:19 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 15 May 2017 20:19:28 +0000 (05:19 +0900)
source/src/vm/fm7/joystick.cpp

index 4192b98..e91069f 100644 (file)
@@ -70,6 +70,9 @@ void JOYSTICK::reset()
        }
        mouse_state = p_emu->get_mouse_buffer();
 #endif 
+       if(opn != NULL) {
+               opn->write_signal(SIG_YM2203_PORT_A, 0xff, 0xff);
+       }
 }
 
 void JOYSTICK::event_frame()