Mouse always unlocked on game start and on disconnecting (i.e when menu shows).

This commit is contained in:
William Moberg
2016-03-10 12:46:06 +01:00
parent f26b24ef6b
commit bdcb33d992
5 changed files with 28 additions and 3 deletions
@@ -3,6 +3,7 @@
#include "Core/System.h"
#include "Input/EInputCommand.h"
#include "Network/EPlayerDisconnected.h"
class SpectatorCameraSystem : public ImpureSystem
{
@@ -17,6 +18,8 @@ private:
EventRelay<SpectatorCameraSystem, Events::InputCommand> m_EInputCommand;
bool OnInputCommand(const Events::InputCommand& e);
EventRelay<SpectatorCameraSystem, Events::PlayerDisconnected> m_EDisconnect;
bool OnDisconnect(const Events::PlayerDisconnected& e);
};
#endif