OSDN Git Service

263b6b597d1b46612333950ebe6434ccad44babc
[csp-qt/common_source_project-fm7.git] / source / src / vm / x1 / joystick.h
1 /*
2         SHARP X1 Emulator 'eX1'
3         SHARP X1twin Emulator 'eX1twin'
4         SHARP X1turbo Emulator 'eX1turbo'
5         SHARP X1turboZ Emulator 'eX1turboZ'
6
7         Author : Takeda.Toshiya
8         Date   : 2009.03.16-
9
10         [ joystick ]
11 */
12
13 #ifndef _JOYSTICK_H_
14 #define _JOYSTICK_H_
15
16 #include "../vm.h"
17 #include "../../emu.h"
18 #include "../device.h"
19
20 class JOYSTICK : public DEVICE
21 {
22 private:
23         DEVICE* d_psg;
24         const uint32_t* joy_stat;
25         
26 public:
27         JOYSTICK(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
28         {
29                 set_device_name(_T("Joystick I/F"));
30         }
31         ~JOYSTICK() {}
32         
33         // common functions
34         void initialize();
35         void event_frame();
36         
37         // unique function
38         void set_context_psg(DEVICE* device)
39         {
40                 d_psg = device;
41         }
42 };
43
44 #endif
45