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

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

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

            return(GetAxis(mousemoveconfig.HorizontalAxis, false));
        }
コード例 #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)));
        }