0
Please tell me the program for keyboard programming & mouse programming
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