Recent Posts

Restrict Mouse Pointer Position C Graphics Program

This C Program will restrict the Mouse Pointer location or to a particular position or x,y coordinates. The C Graphics Mouse Program will give you more insights. The Other Similar Programs are: Restrict Mouse Pointer in Circle Restrict Mouse Pointer in Rectangle //restrict the x and y coordinate #include <dos.h> #include <stdio.h> void main() { union REGS i,o; //show mouse pointer i.x.ax=1; int86(0x33,&i,&o); ...

Read More »

C Program to restrict Mouse pointer in a Rectangle

This C Program will restrict the Mouse pointer Position in the Rectangle. The Mouse Programs are listed here if you want to learn more C Graphics Programs for Mouse. Also If you want to learn how to restrict the Mouse Pointer in Circle then check here. #include<dos.h> #include<graphics.h> #include<conio.h> int initmouse(); void showmouseptr(); void hidemouseptr(); void restrictmouseptr(int, int, int, int); union REGS i, o; main() { ...

Read More »

Restrict Mouse Pointer in Circle C program

How to restrict Mouse Pointer in Circle using c Graphics Programming is given here. #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<math.h> union REGS i, o; int initmouse() { i.x.ax = 0; int86(0X33, &i, &o); return ( o.x.ax ); } void showmousepointer() { i.x.ax = 1; int86(0X33, &i, &o); } void hidemopusepointer() { i.x.ax = 2; int86(0X33,&i,&o); } void getmousepos(int *x, int *y) { ...

Read More »