OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pasopia / joypac2.h
1 /*
2         TOSHIBA PASOPIA Emulator 'EmuPIA'
3         TOSHIBA PASOPIA 7 Emulator 'EmuPIA7'
4
5         Author : Takeda.Toshiya
6         Date   : 2006.09.20 -
7
8         [ joystick ]
9 */
10
11 #ifndef _JOYPAC2_H_
12 #define _JOYPAC2_H_
13
14 #include "../vm.h"
15 #include "../../emu.h"
16 #include "pac2dev.h"
17
18 namespace PASOPIA {
19
20 class JOYPAC2 : public PAC2DEV
21 {
22 private:
23         const uint32_t* joy;
24 public:
25         JOYPAC2(VM* parent_vm, EMU* parent_emu) : PAC2DEV(parent_vm, parent_emu)
26         {
27                 set_device_name(_T("Joystick PAC2"));
28         }
29         ~JOYPAC2() {}
30         
31         // common functions
32         void initialize(int id);
33         void write_io8(uint32_t addr, uint32_t data);
34         uint32_t read_io8(uint32_t addr);
35 };
36
37 }
38 #endif
39