MOUSEPTR.CPP

 #include<dos.h>

union REGS ii,oo;
int initmouse()
{
ii.x.ax=0;
int86(0x33,&ii,&oo);
return oo.x.ax;
}

void showmouseptr()
{
ii.x.ax=1;
int86(0x33,&ii,&oo);
}

void getmousepos(int * button1,int * x1,int * y1)
{
ii.x.ax=3;
int86(0x33,&ii,&oo);

*button1=oo.x.bx;
*x1=oo.x.cx;
*y1=oo.x.dx;
}

void hidemouseptr()
{
ii.x.ax=2;
int86(0x33,&ii,&oo);
}

Project Homepage: