-/*\r
- ASCII MSX1 Emulator 'yaMSX1'\r
- Pioneer PX-7 Emulator 'ePX-7'\r
-\r
- Author : tanam\r
- Date : 2013.06.29-\r
-\r
- modified by Takeda.Toshiya\r
-\r
- [ keyboard ]\r
-*/\r
-\r
-#ifndef _KEYBOARD_H_\r
-#define _KEYBOARD_H_\r
-\r
-#include "../vm.h"\r
-#include "../../emu.h"\r
-#include "../device.h"\r
-\r
-#define SIG_KEYBOARD_COLUMN 0\r
-\r
-class KEYBOARD : public DEVICE\r
-{\r
-private:\r
- DEVICE *d_cpu, *d_pio;\r
- \r
- uint8* key_stat;\r
- uint8 column;\r
- bool break_pressed;\r
- \r
- void update_keyboard();\r
- \r
-public:\r
- KEYBOARD(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}\r
- ~KEYBOARD() {}\r
- \r
- // common functions\r
- void initialize();\r
- void event_frame();\r
- void write_signal(int id, uint32 data, uint32 mask);\r
- \r
- // unique functions\r
- void set_context_cpu(DEVICE* device)\r
- {\r
- d_cpu = device;\r
- }\r
- void set_context_pio(DEVICE* device)\r
- {\r
- d_pio = device;\r
- }\r
-};\r
-#endif\r
+/*
+ ASCII MSX1 Emulator 'yaMSX1'
+ Pioneer PX-7 Emulator 'ePX-7'
+
+ Author : tanam
+ Date : 2013.06.29-
+
+ modified by Takeda.Toshiya
+
+ [ keyboard ]
+*/
+
+#ifndef _KEYBOARD_H_
+#define _KEYBOARD_H_
+
+#include "../vm.h"
+#include "../../emu.h"
+#include "../device.h"
+
+#define SIG_KEYBOARD_COLUMN 0
+
+class KEYBOARD : public DEVICE
+{
+private:
+ DEVICE *d_cpu, *d_pio;
+
+ uint8* key_stat;
+ uint8 column;
+ bool break_pressed;
+
+ void update_keyboard();
+
+public:
+ KEYBOARD(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
+ ~KEYBOARD() {}
+
+ // common functions
+ void initialize();
+ void event_frame();
+ void write_signal(int id, uint32 data, uint32 mask);
+
+ // unique functions
+ void set_context_cpu(DEVICE* device)
+ {
+ d_cpu = device;
+ }
+ void set_context_pio(DEVICE* device)
+ {
+ d_pio = device;
+ }
+};
+#endif