mouse stuff...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user