Пример #1
0
        private void ExecuteMouseAction(ResponseActions action)
        {
            switch (action)
            {
            case ResponseActions.MouseLeftButtonDown:
                //Do Nothing - handled by MoveAction
                break;

            case ResponseActions.MouseLeftButtonUp:
                //Do Nothing - handled by MoveAction
                break;

            case ResponseActions.MouseLeftClick:
                m_InputSimulator.DoLeftClick();
                break;

            case ResponseActions.MouseLeftDoubleClick:
                m_InputSimulator.DoDoubleClick();
                break;

            case ResponseActions.MouseRightButtonDown:
                //Do Nothing - handled by MoveAction
                break;

            case ResponseActions.MouseRightButtonUp:
                //Do Nothing - handled by MoveAction
                break;

            case ResponseActions.MouseRightClick:
                m_InputSimulator.DoRightClick();
                break;

            default:
                throw new ArgumentException(string.Format("ExecuteMouseAction called with wrong argument action = {0}", action));
            }
        }