|
-
October 8th, 2005, 01:36 PM
#1
Mouse Input
Is there a function I can call to obtain the up/down status of all mouse buttons at the time of the function call?
I'm attempting to use Win32 as a replacement of DirectInput, since DI will go bye bye soon.
--MrDoomMaster
--C++ Game Programmer
Don't forget to rate me if I was helpful!
-
October 8th, 2005, 02:08 PM
#2
Re: Mouse Input
GetAsyncKeyState() will work for mouse buttons as well as keys on the keyboard. Use the constants VK_LBUTTON, VK_RBUTTON, and VK_MBUTTON. See the bit on the MSDN page linked above under "Remarks" regarding the difference between physical and logical mouse buttons.
-
October 8th, 2005, 02:08 PM
#3
Re: Mouse Input
::GetAsyncKeyState(..) with VK_LBUTTON or VK_RBUTTON
for
/EDIT Smasher/Devourer was faster 
Cheers
-
October 8th, 2005, 04:25 PM
#4
Re: Mouse Input
Thanks guys, you're extremely helpful.
I've rated both of you. Keep up the great work!
--MrDoomMaster
--C++ Game Programmer
Don't forget to rate me if I was helpful!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|