Mail Archives: djgpp/1998/02/22/00:02:54
I'm trying to figure out how to program the mouse but I've got a
problem. The function below never changes the value of 'pressed', and
I'm not sure why.. The row and cursor are returned ok.
void get_mouse_status(int *pressed, int *column, int *row)
{
asm ("
movw $0x0003,%%ax \n
int $0x33 \n
movw %%bx,%0 \n
movw %%cx,%1 \n
movw %%dx,%2"
:
: "g" (*pressed), "g" (*column), "g" (*row)
: "ax", "bx", "cx", "dx", "memory"
);
}
[tg]
Curiosity only kills cats.
- Raw text -