OSDN Git Service

35a83c9c9f6089ce4cd9d89e7e53b7d0bbcb4e89
[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 class JOYSTICK : public DEVICE
22 {
23 private:
24         DEVICE *d_psg;
25         const uint32_t *joy_stat;
26         
27 public:
28         JOYSTICK(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
29         {
30                 set_device_name(_T("Joystick I/F"));
31         }
32         ~JOYSTICK() {}
33         
34         // common functions
35         void initialize();
36         void event_frame();
37         
38         // unique function
39         void set_context_psg(DEVICE* device)
40         {
41                 d_psg = device;
42         }
43 };
44 #endif