Originally posted by GlutNewbie:
Hi.
I'm a little confused about how glutTimerFunc() is supposed to work. Here's what I want to do.
1. I want to find out if the user took less than 10 milliseconds to click the left mouse button.
2. If yes, then I will end the animation.
3. If no, then the animation will continue.
glutTimer(aNumber, aFunc, aValue);
4. This is what someone told me about glutTimerFunc()....glutTimerFunc will call aFunc after aNumber time has passed but not if the user clicks the left mouse button before aNumber is up. This seems a little odd to me but I took her word for it because she knows more than I do. However, that isn't working for me. Can anyone tell me what needs to be done?
Thanks