Mouse Input Question
Hey, Im wondering if it is possible to get the input of the mouse (for example, what button is pressed and where (x,y)) without using direct input. If so, or if not, which ever that may be. could someone be kind enough to point me in the direction of articles or tutorials on that subject.
-------------------------
J_T_Biggs - 2001
-------------------------J_T_Biggs - 2001
Im not sure if this is what you are looking for or if you already know this but if you add WM_MOUSEMOVE and WM_LBUTTon /WM_RBUTTon etc to your wndproc then you have the info you need (WM_MOUSEMOVE gives you the x,y positions of the cursor). Hope that helps
edit- hmm something is dodgy with my BUTTON here
Edited by - Zeke on August 30, 2001 6:07:35 AM
edit- hmm something is dodgy with my BUTTON here
Edited by - Zeke on August 30, 2001 6:07:35 AM
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
August 30, 2001 12:05 PM
can also check mouse by using this windows function, that way you can keep mouse checking code separate from the other wm_message code.
HHOOK SetWindowsHookEx( int idHook,
// type of hook to install
HOOKPROC lpfn,
// address of hook procedure
HINSTANCE hMod,
// handle of application instance
DWORD dwThreadId
// identity of thread to install hook for
);
then use this to unhook
BOOL UnhookWindowsHookEx( HHOOK hhk
// handle of hook procedure to remove
);
HHOOK SetWindowsHookEx( int idHook,
// type of hook to install
HOOKPROC lpfn,
// address of hook procedure
HINSTANCE hMod,
// handle of application instance
DWORD dwThreadId
// identity of thread to install hook for
);
then use this to unhook
BOOL UnhookWindowsHookEx( HHOOK hhk
// handle of hook procedure to remove
);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement