Compare commits

...

2 Commits

@ -844,6 +844,20 @@ protected:
}; };
REGISTER_ACTION_HANDLER( CHandlerContextFreeLook, "context_free_look"); REGISTER_ACTION_HANDLER( CHandlerContextFreeLook, "context_free_look");
// ***************************************************************************
class CHandlerToggleFreeLook : public IActionHandler
{
public:
void execute(CCtrlBase * /* pCaller */, const std::string & /* sParams */)
{
if (UserControls.getFreeLook())
UserControls.stopFreeLook();
else
UserControls.startFreeLook();
}
};
REGISTER_ACTION_HANDLER( CHandlerToggleFreeLook, "toggle_free_look");
// *************************************************************************** // ***************************************************************************
// GCM Move // GCM Move
// *************************************************************************** // ***************************************************************************

@ -177,6 +177,8 @@ public:
/// Stop Free Look (can be called multiple times if needed). Additionaly, the mouse/pointer is restored /// Stop Free Look (can be called multiple times if needed). Additionaly, the mouse/pointer is restored
void stopFreeLook(); void stopFreeLook();
bool getFreeLook() const { return _FreeLook; }
/// Is the camera inside the character. /// Is the camera inside the character.
bool isInternalView() {return _InternalView;} bool isInternalView() {return _InternalView;}

Loading…
Cancel
Save