TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 221 forks source link

FPS Camera mouse recapture after pressing Esc failed #67

Closed ghost closed 8 years ago

ghost commented 8 years ago

To reproduce the bug:

The result is that nothing happens, it should recapture the mouse, as explained in the previous devlog.

Gogsi commented 8 years ago

Mouse recapturing happens with right clicking on the window. You can change that at line 32 in FPSCamera.cpp from SP_MOUSE_RIGHT to SP_MOUSE_LEFT.

As Cherno will probably read this I might add something which is sort of on the same topic: In FPSCamera:46 you print the mouse X and Y every update which is not really needed.

ghost commented 8 years ago

Ok thanks, so that's not an issue.

TheCherno commented 8 years ago

@Gogsi Whoops, forgot to remove that. :)