2 SANYO PHC-25 Emulator 'ePHC-25'
3 SEIKO MAP-1010 Emulator 'eMAP-1010'
5 Author : Takeda.Toshiya
12 #include "../ay_3_891x.h"
16 void JOYSTICK::initialize()
18 joy_stat = emu->get_joy_buffer();
20 // register event to update the key status
21 register_frame_event(this);
24 void JOYSTICK::event_frame()
26 d_psg->write_signal(SIG_AY_3_891X_PORT_A, ~(joy_stat[0] & 0x1f), 0xff);
27 d_psg->write_signal(SIG_AY_3_891X_PORT_B, ~(joy_stat[1] & 0x1f), 0xff);