/// <summary> /// Disabled input handling. Does not disable smoothing/etc, so the other functions will /// still work and the camera will even come to a smooth stop if you call this method while /// the user is dragging the camera /// </summary> public void DisableInput() { if (!(_input is FreeCamDisabledInput)) { _input = new FreeCamDisabledInput(); } }
void InitializeFreeCamInput() { _currentMode = Mode; InputMode modeToTest = _currentMode; if (_currentMode == InputMode.Automatic) { modeToTest = ResolveAutomaticInputMode(); } switch (modeToTest) { case InputMode.Mouse: _input = new FreeCamMouseInput(); break; case InputMode.Touch: _input = new FreeCamTouchInput(); break; } }