PDA

View Full Version : first person camera stuck moving while clicking



wizzo
07-13-2003, 01:57 AM
hey !
heres the deal : i made camera set by the mouse, and besides i wanted to trigger event while clicking. I used first glutMouseFunc() to get the clicking. but when i (for instance) rotate the view by themouse, and then clic, the view keeps on turning as long as the mouse button stays down.
i then changed the mouse func, and used GetKeyState(), but it does the same....

its like the function that gets the clicking make my program to loop : the view is set by vector that says in which direction i moved the mouse. while clicking, the vector stays the same while i'm not moving anymore... i don't really see why =)

if anybody had the same problem, please tell me
thx a lot
wizzo