OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc6001 / joystick.h
1 /*
2         NEC PC-6001 Emulator 'yaPC-6001'
3         NEC PC-6001mkII Emulator 'yaPC-6201'
4         NEC PC-6001mkIISR Emulator 'yaPC-6401'
5         NEC PC-6601 Emulator 'yaPC-6601'
6         NEC PC-6601SR Emulator 'yaPC-6801'
7
8         Author : tanam
9         Date   : 2013.07.15-
10
11         [ joystick ]
12 */
13
14 #ifndef _JOYSTICK_H_
15 #define _JOYSTICK_H_
16
17 #include "../vm.h"
18 #include "../../emu.h"
19 #include "../device.h"
20
21 namespace PC6001 {
22
23 class JOYSTICK : public DEVICE
24 {
25 private:
26         DEVICE *d_psg;
27         const uint32_t *joy_stat;
28         
29 public:
30         JOYSTICK(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
31         {
32                 set_device_name(_T("Joystick I/F"));
33         }
34         ~JOYSTICK() {}
35         
36         // common functions
37         void initialize();
38         void event_frame();
39         
40         // unique function
41         void set_context_psg(DEVICE* device)
42         {
43                 d_psg = device;
44         }
45 };
46
47 }
48 #endif