OSDN Git Service

[VM][General][WIP] Apply new (Upstream 2016-02-21) APIs to VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / keyboard.cpp
index 917e1be..a123fc2 100644 (file)
@@ -12,7 +12,6 @@
 #include "keyboard.h"
 #include "../i8255.h"
 #include "../z80pio.h"
-#include "../../fileio.h"
 
 #ifdef _MZ2500
 #define MAX_COLUMN 14
@@ -39,7 +38,7 @@ static const int key_map[14][8] = {
 
 void KEYBOARD::initialize()
 {
-       key_stat = emu->key_buffer();
+       key_stat = emu->get_key_buffer();
        column = 0;
        register_frame_event(this);
 }
@@ -56,7 +55,6 @@ void KEYBOARD::event_frame()
 {
        // update key status
        memset(keys, 0xff, sizeof(keys));
-       key_stat[0] = 0;
        for(int i = 0; i < MAX_COLUMN; i++) {
                uint8 tmp = 0;
                for(int j = 0; j < 8; j++) {