added camera controls to editor
This commit is contained in:
@@ -17,6 +17,7 @@ void TSE::ICursorHandler::Enable()
|
||||
if(!enabled())
|
||||
{
|
||||
IInputManager::instance()->RegisterCursorHandler(this);
|
||||
Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +26,7 @@ void TSE::ICursorHandler::Disable()
|
||||
if(enabled())
|
||||
{
|
||||
IInputManager::instance()->UnregisterCursorHandler(this);
|
||||
Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ void TSE::IKeyInputHandler::Enable()
|
||||
if(!enabled())
|
||||
{
|
||||
IInputManager::instance()->RegisterKeyHandler(this);
|
||||
Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +26,7 @@ void TSE::IKeyInputHandler::Disable()
|
||||
if(enabled())
|
||||
{
|
||||
IInputManager::instance()->UnregisterKeyHandler(this);
|
||||
Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user