473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C mouse programming

hi to all

here are some functions of C
can anybody explain these functions??????
actually i have to make a project in C and smbody told me u can use these functions for mouse programming but i dont know wat to do with these??????
can u please explain it wat exactly these functions are doing???

int initmouse()
{
i.x.ax=0;
int86(0x33,&i,&o);
return(o.x.ax);
}

void showmouseptr()
{
i.x.ax=1;
int86(0x33,&i,&o);
}

int restrictmouseptr(int x1,int y1,int x2,int y2)
{
i.x.ax=7;
i.x.cx=x1;
i.x.dx=x2;
int86(0x33,&i,&o);

i.x.ax=8;
i.x.cx=y1;
i.x.dx=y2;
int86(0x33,&i,&o);
}

void getmousepos(int *button,int *x,int *y)
{
i.x.ax=3;
int86(0x33,&i,&o);
*button=o.x.bx;
*x=o.x.cx;
*y=o.x.dx;
}
Mar 13 '08 #1
2 2129
sicarie
4,677 Expert Mod 4TB
Did you try putting these into a compiler and seeing what they did, then playing with the values in there to get an even better idea of what it does?
Mar 13 '08 #2
thnx for the suggestio n dear

I have already tried that but i m not able to understand what does i , o ,x and ax exactly means??????????
why int86 has been used ???

like in the following code ................

i.x.ax=0;
int86(0x33,&i,&o);
return(o.x.ax);
Mar 13 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: fernandoronci | last post by:
Hi, I've been given the task of mantaining and fixing a website which I didn't design. I'm using Internet Explorer 5.5 and 6.x. Specifically, the problem is that navigation menues (written in...
2
by: KarenP | last post by:
In my Windows Forms application, while executing a process that takes some time, I am changing the cursor to the hourglass by setting Cursor.Current = Cursors.WaitCursor. This is working just...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
19
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up...
1
by: DaveS | last post by:
I am trying to capture the mouse click position in a datagrid but I get the following compilation error: Compiler Error Message: BC30002: Type 'System.Windows.Forms.MouseEventArgs' is not...
0
by: sharma1985 | last post by:
Hello Sir, I am working on developing an tool based on the PHP and HTML. In developing this tool, I would like to know about Mouse Programming in PHP as this will be helpful in my development work....
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
1
by: sharma1985 | last post by:
Hi all ! I wanted to know the basic programming concepts of mouse programming as well as how can i zoom my image by moving the mouse pointer on a scrollbar. this should be worked like when...
2
by: Reorxer | last post by:
Hello everyone! Me and my partner are working on some project, which involves the MSP430 MCU. Our task is to make the computer identify the board as a mouse, so that we can control the mouse by...
1
by: =?Utf-8?B?YWNlLXBva2Vy?= | last post by:
I have been using a MS Laser Mouse 8000 with Vista for some time now with no problems other than very occasionally the mouse is not detected during boot and I have had to re-start. The problem I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.