OSDN Git Service

[VM][General] Merge upstream 2016-02-13. Still don't implement OSD/Gui part of joysti...
[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
6         Author : Takeda.Toshiya
7         Date   : 2009.03.16-
8
9         [ joystick ]
10 */
11
12 #ifndef _JOYSTICK_H_
13 #define _JOYSTICK_H_
14
15 #include "../vm.h"
16 #include "../../emu.h"
17 #include "../device.h"
18
19 class JOYSTICK : public DEVICE
20 {
21 private:
22         DEVICE* d_psg;
23         const uint32* joy_stat;
24         
25 public:
26         JOYSTICK(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
27         ~JOYSTICK() {}
28         
29         // common functions
30         void initialize();
31         void event_frame();
32         
33         // unique function
34         void set_context_psg(DEVICE* device)
35         {
36                 d_psg = device;
37         }
38 };
39
40 #endif
41