Click to See Complete Forum and Search --> : mouse program interface


rage1989
March 17th, 2008, 06:46 AM
does anybody has an idea how to
interface between mouse and da source code???
my senior gave me an idea abt using interrupts......

Lindley
March 17th, 2008, 07:20 AM
You need to tell the system you want mouse callback events. Some libraries provide this; I don't know how you'd do it directly using just Win32.

rage1989
March 17th, 2008, 09:06 AM
Its win xp and the compiler
is dev c++
do u know library or function name?

Lindley
March 17th, 2008, 09:15 AM
GTK+ is the library I use, but that might be overkill in this case (it's a full GUI toolkit).

Zaccheus
March 17th, 2008, 10:08 AM
does anybody has an idea how to
interface between mouse and da source code???
my senior gave me an idea abt using interrupts......
Its win xp and the compiler
is dev c++
do u know library or function name?
In Windows you handle the mouse messages which are sent to your window, for example: WM_MOUSEMOVE (http://msdn2.microsoft.com/en-us/library/ms645616(VS.85).aspx).