aboutsummaryrefslogtreecommitdiff
path: root/src/input/ps2/mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/ps2/mouse.c')
-rw-r--r--src/input/ps2/mouse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/ps2/mouse.c b/src/input/ps2/mouse.c
index 191c270..8e5a3e3 100644
--- a/src/input/ps2/mouse.c
+++ b/src/input/ps2/mouse.c
@@ -1,7 +1,6 @@
#include "../../io/io.h"
#include "../../interrupts/interrupts.h"
#include "../../graphics/vga.h"
-#include "../input.h"
char mouse_cycle = 0;
signed char mouse_byte[3], mouse_ex[3];
@@ -38,6 +37,9 @@ void mouse_handler(struct regs *a_r) {
default:
break;
}
+ if (mm_n[0] == 1) {
+ terminal_write_string("CLICK!\n");
+ }
}
inline void mouse_wait(char a_type) {