aboutsummaryrefslogtreecommitdiff
path: root/drivers/keyboard.cc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/keyboard.cc')
-rw-r--r--drivers/keyboard.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/keyboard.cc b/drivers/keyboard.cc
index 09fd4e9..2fae83c 100644
--- a/drivers/keyboard.cc
+++ b/drivers/keyboard.cc
@@ -25,7 +25,7 @@ Keyboard::Keyboard() : InterruptHandler(0x01) {
dataport.write(dat_enable_scanning);
}
-void Keyboard::trigger() {
+cpu_state_t* Keyboard::trigger(cpu_state_t* cpu) {
const auto key = dataport.read();
if (key < 0x80) {
@@ -157,4 +157,6 @@ void Keyboard::trigger() {
break;
}
}
+
+ return cpu;
}