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

            return(GetAxis(mousemoveconfig.Zoom));
        }
Exemplo n.º 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)));
        }
Exemplo n.º 3
0
        public int GetVertical(string mousemovename)
        {
            if (!MouseMoveConfigsByName.ContainsKey(mousemovename))
            {
                return(0);
            }
            MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename];

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

            return(GetAxis(mousemoveconfig.HorizontalAxis, false));
        }
Exemplo n.º 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)));
        }