2 TOSHIBA PASOPIA Emulator 'EmuPIA'
3 TOSHIBA PASOPIA 7 Emulator 'EmuPIA7'
5 Author : Takeda.Toshiya
13 void JOYPAC2::initialize(int id)
15 joy = emu->joy_buffer();
18 void JOYPAC2::write_io8(uint32 addr, uint32 data)
23 uint32 JOYPAC2::read_io8(uint32 addr)
29 if(joy[1] & 0x01) val &= ~0x01;
30 if(joy[1] & 0x02) val &= ~0x02;
31 if(joy[1] & 0x04) val &= ~0x04;
32 if(joy[1] & 0x08) val &= ~0x08;
33 if(joy[1] & 0x10) val &= ~0x10;
34 if(joy[1] & 0x20) val &= ~0x20;
37 if(joy[0] & 0x01) val &= ~0x01;
38 if(joy[0] & 0x02) val &= ~0x02;
39 if(joy[0] & 0x04) val &= ~0x04;
40 if(joy[0] & 0x08) val &= ~0x08;
41 if(joy[0] & 0x10) val &= ~0x10;
42 if(joy[0] & 0x20) val &= ~0x20;