Example #1
0
        public int GetZoom(string mousemovename)
        {
            if (!MouseMoveConfigsByName.ContainsKey(mousemovename))
            {
                return(0);
            }
            MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename];

            return(GetAxis(mousemoveconfig.Zoom));
        }
Example #2
0
        public Vector3 GetMouseStateVector(string mousemovename)
        {
            if (!MouseMoveConfigsByName.ContainsKey(mousemovename))
            {
                return(null);
            }
            MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename];

            return(new Vector3(GetAxis(mousemoveconfig.HorizontalAxis), GetAxis(mousemoveconfig.VerticalAxis), GetAxis(mousemoveconfig.Zoom)));
        }
Example #3
0
        public int GetVertical(string mousemovename)
        {
            if (!MouseMoveConfigsByName.ContainsKey(mousemovename))
            {
                return(0);
            }
            MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename];

            return(GetAxis(mousemoveconfig.VerticalAxis, mousemoveconfig.InvertVertical));
        }
Example #4
0
        public int GetHorizontal(string mousemovename)
        {
            if (!MouseMoveConfigsByName.ContainsKey(mousemovename))
            {
                return(0);
            }
            MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename];

            return(GetAxis(mousemoveconfig.HorizontalAxis, false));
        }
Example #5
0
        public Vector3 GetMouseStateVector(string mousemovename)
        {
            if (!MouseMoveConfigsByName.ContainsKey(mousemovename))
            {
                return(null);
            }
            MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename];

            //bool invert = mousemoveconfig.Invert;
            return(new Vector3(GetAxis(mousemoveconfig.HorizontalAxis, false),
                               GetAxis(mousemoveconfig.VerticalAxis, mousemoveconfig.InvertVertical),
                               GetAxis(mousemoveconfig.Zoom, mousemoveconfig.InvertScroll)));
        }