0

Please tell me the program for keyboard programming & mouse programming

1st Jul 2017, 1:09 PM
zoufisha khan
3 Answers
0
#include<dos.h> #include<conio.h>   int initmouse(); void showmouseptr();   union REGS i, o;   main() { int status;   status = initmouse();   if ( status == 0 ) printf("Mouse support not available.\n"); else showmouseptr();   getch(); return 0; }   int initmouse() { i.x.ax = 0; int86(0X33,&i,&o); return ( o.x.ax ); }   void showmouseptr() { i.x.ax = 1; int86(0X33,&i,&o); } this is a mouse program for showing the cursor in text mode in C language
1st Jul 2017, 3:13 PM
zoufisha khan