input problems with camera FPS and mouse events

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
pedrodx

input problems with camera FPS and mouse events

Post by pedrodx »

Hi! I've found a problem that follows:
when I try to capture mouse clicks, detail: my game also has a FPS camera!
The mouse clicks are captured nicely via a class that implements IEventReceiver, but the FPSCamera gets MAD!! When I take a direction with the keys and move the mouse, then the camera doesn't stop going that direction!! Can anybody help me?? When I cut off the class that capture mouse clicks, the bug of the FPS Camera goes off, it's incredible!! Thanks in advance!!
pedrodx

Forgot it! I found the bug!!

Post by pedrodx »

Oh Jesus!! I have forgot to put the return statement, in case the events wasn't mouse clicks (in this case it's false) in virtual bool OnEvent!! Thanks people!!
Post Reply