Example #1
0
 /// <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();
     }
 }
Example #2
0
    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;
        }
    }