You are here

C program to display mouse pointer in graphics mode

This program displays mouse pointer in graphics mode. First graphics mode is initialized and then mouse using initmouse.

C programming code


int initmouse();
void showmouseptr();

union REGS i, o;

   int status, gd = DETECT, gm;


   status = initmouse();

   if ( status == 0 )
      printf("Mouse support not available.\n");

   return 0;

int initmouse()
{ = 0;
   int86(0X33, &i, &o);
   return ( );

void showmouseptr()
{ = 1;
   int86(0X33, &i, &o);

Share this