OSDN Git Service

[General] Merge from upstream version, 2015-01-28.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2800 / joystick.h
1 /*
2         SHARP MZ-2800 Emulator 'EmuZ-2800'
3
4         Author : Takeda.Toshiya
5         Date   : 2007.08.14 -
6
7         [ joystick ]
8 */
9
10 #ifndef _JOYSTICK_H_
11 #define _JOYSTICK_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 class JOYSTICK : public DEVICE
18 {
19 private:
20         uint32 mode;
21         int full_auto;
22         uint32* joy_stat;
23 public:
24         JOYSTICK(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
25         ~JOYSTICK() {}
26         
27         // common functions
28         void initialize();
29         void write_io8(uint32 addr, uint32 data);
30         uint32 read_io8(uint32 addr);
31         void event_frame();
32         void save_state(FILEIO* state_fio);
33         bool load_state(FILEIO* state_fio);
34 };
35
36 #endif