public static Vector2 GetAxis2(ControllerInputType userType) { if (userType == ControllerInputType.ControllerCPU) { return(Vector2.zero); } string str_input_h = userType.ToShortCutInput() + "Horizontal2"; string str_input_v = userType.ToShortCutInput() + "Vertical2"; float h = Input.GetAxis(str_input_h); float v = Input.GetAxis(str_input_v); return(new Vector2(h, v)); }
public static float GetAxisVertical1(ControllerInputType userType) { if (userType == ControllerInputType.ControllerCPU) { return(0); } string str_input_v = userType.ToShortCutInput() + "Vertical1"; return(Input.GetAxis(str_input_v)); }
public static bool GetButtonUp(ControllerInputType userType, ButtomInputType bt) { if (userType == ControllerInputType.ControllerCPU) { return(false); } string str_input = userType.ToShortCutInput() + bt.ToString(); return(Input.GetButtonUp(str_input)); }
public static bool GetButtonDown(ControllerInputType userType, string bt) { if (userType == ControllerInputType.ControllerCPU) { return(false); } string str_input = userType.ToShortCutInput() + bt; return(Input.GetButtonDown(str_input)); }
public static float GetAxisHorizontal2(ControllerInputType userType) { if (userType == ControllerInputType.ControllerCPU) { return(0); } string str_input_h = userType.ToShortCutInput() + "Horizontal2"; return(Input.GetAxis(str_input_h)); }