/* Program to check if mouse driver is loaded or not */
Wednesday 16 March 2016
About Rishabh Aggarwal
Competitive Programmer and Ruby on Rails Developer
Subscribe to:
Post Comments (Atom)
#include <dos.h> #include <conio.h> int initmouse(); union REGS i, o; main() { int status; status = initmouse(); if ( status == 0 ) printf("Mouse support not available.\n"); else printf("Mouse support available.\n"); getch(); return 0; } int initmouse() { i.x.ax = 0; int86(0X33,&i,&o); return ( o.x.ax ); }
About Rishabh Aggarwal
Competitive Programmer and Ruby on Rails Developer
Snake Game using javascript (P5.js) Follow me at Instagram here. Subscribe to my youtube channel here. Just learnt somet...
No comments:
Post a Comment