mouse stuff...

This commit is contained in:
Tobin
2026-04-17 18:00:47 -04:00
parent 82bc592d50
commit 7c3f8a1488
+10
View File
@@ -68,16 +68,26 @@ void key_up(char k)
printf("%c un-pressed\n", k); printf("%c un-pressed\n", k);
} }
static int mousex = 0;
static int mousey = 0;
void mouse_move(int x, int y) 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) 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) void mouse_up(unsigned char button)
{ {
printf("mouse button %02x un-clicked!\n", button);
} }
void process_input(void) void process_input(void)