public int GetZoom(string mousemovename) { if (!MouseMoveConfigsByName.ContainsKey(mousemovename)) { return(0); } MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename]; return(GetAxis(mousemoveconfig.Zoom)); }
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))); }
public int GetVertical(string mousemovename) { if (!MouseMoveConfigsByName.ContainsKey(mousemovename)) { return(0); } MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename]; return(GetAxis(mousemoveconfig.VerticalAxis, mousemoveconfig.InvertVertical)); }
public int GetHorizontal(string mousemovename) { if (!MouseMoveConfigsByName.ContainsKey(mousemovename)) { return(0); } MouseMoveConfig mousemoveconfig = MouseMoveConfigsByName[mousemovename]; return(GetAxis(mousemoveconfig.HorizontalAxis, false)); }
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))); }