From 7c3f8a1488d4f57dd91704bde9cacf667bc9734a Mon Sep 17 00:00:00 2001 From: Tobin Date: Fri, 17 Apr 2026 18:00:47 -0400 Subject: [PATCH] mouse stuff... --- main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.c b/main.c index 8af5576..e39316d 100644 --- a/main.c +++ b/main.c @@ -68,16 +68,26 @@ void key_up(char k) printf("%c un-pressed\n", k); } +static int mousex = 0; +static int mousey = 0; + void mouse_move(int x, int y) { + /* clear old mouse icn */ + mousex = x; + mousey = y; + printf("mouse moved! (%d, %d)\n", x, y); } void mouse_down(unsigned char button) { + printf("mouse button %02x clicked!\n", button); + /* TODO struct for this too?? that seems like a lot. what if we *don't* use mouse for anything... */ } void mouse_up(unsigned char button) { + printf("mouse button %02x un-clicked!\n", button); } void process_input(void)