Mouse Buttons giving me curry!!!

Started by
1 comment, last by Johnny Good 21 years, 6 months ago
Howdy, I have implemented the wrapper files used in the DirectInput tutes found here and it all works sweet except for the mouse button down function. The problem is that yes it does say that the mouse button is down but it never changes its state from true so every frame it thinks the mouse button has been pressed after the first time you press it. Any help would be great.
Never can tell.
Advertisement
Without seeing your code it''s kind of hard to tell, but:

Are you trapping a button up event? I thought this was the only way to know (with a message) if the mouse button has been released.

Will
------------------http://www.nentari.com
Thanks for the reply, I had just figured it when you replied that the mouse button down was still firing throughout the framecount, in other words 1 click of the mouse may last for 12 frames or more and so my events were firing for 12 times. i just put a wait event in which waits until a mouse up message is recieved until it allows another mouse down event.

Cheers
Never can tell.

This topic is closed to new replies.

Advertisement