OSDN Git Service

01c47db95dae071947cee1e269af524320e3ef98
[csp-qt/common_source_project-fm7.git] / source / src / vm / phc25 / joystick.h
1 /*
2         SANYO PHC-25 Emulator 'ePHC-25'
3         SEIKO MAP-1010 Emulator 'eMAP-1010'
4
5         Author : Takeda.Toshiya
6         Date   : 2010.08.06-
7
8         [ joystick ]
9 */
10
11 #ifndef _JOYSTICK_H_
12 #define _JOYSTICK_H_
13
14 #include "../vm.h"
15 #include "../../emu.h"
16 #include "../device.h"
17
18 class JOYSTICK : public DEVICE
19 {
20 private:
21         DEVICE *d_psg;
22         const uint32_t *joy_stat;
23         
24 public:
25         JOYSTICK(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
26         {
27                 set_device_name(_T("Joystick I/F"));
28         }
29         ~JOYSTICK() {}
30         
31         // common functions
32         void initialize();
33         void event_frame();
34         
35         // unique function
36         void set_context_psg(DEVICE* device)
37         {
38                 d_psg = device;
39         }
40 };
41
42 #endif