// Token: 0x060007E6 RID: 2022 RVA: 0x000346BE File Offset: 0x00032ABE public static void ResetInputAxes() { Input.ResetInputAxes(); if (CFInput.ControllerActive()) { CFInput.ctrl.ReleaseTouches(); } }
// Token: 0x060007E5 RID: 2021 RVA: 0x000346A0 File Offset: 0x00032AA0 public static bool GetMouseButtonUp(int i) { if (CFInput.ControllerActive()) { return(CFInput.ctrl.GetMouseButtonUp(i)); } return(Input.GetMouseButtonUp(i)); }
// Token: 0x060007E2 RID: 2018 RVA: 0x00034600 File Offset: 0x00032A00 public static float GetAxisPx(string axisName, float refResolution = 1280f, float maxDragInches = 1f) { if (CFInput.ControllerActive() && TouchController.IsSupported()) { float actualDPI = CFInput.ctrl.GetActualDPI(); float axis = CFInput.GetAxis(axisName); return(axis / (actualDPI * maxDragInches) * refResolution); } int width = Screen.currentResolution.width; return(CFInput.GetAxis(axisName) * ((width != 0) ? (refResolution / (float)width) : 1f)); }
// Token: 0x060007DC RID: 2012 RVA: 0x0003441C File Offset: 0x0003281C public static bool GetKeyUp(KeyCode key) { if (CFInput.ControllerActive()) { bool flag = false; bool keyUpEx = CFInput.ctrl.GetKeyUpEx(key, out flag); if (flag) { return(keyUpEx); } } return(Input.GetKeyUp(key)); }
// Token: 0x060007DE RID: 2014 RVA: 0x000344A8 File Offset: 0x000328A8 public static bool GetButtonDown(string axisName) { if (CFInput.ControllerActive()) { bool flag = false; bool buttonDownEx = CFInput.ctrl.GetButtonDownEx(axisName, out flag); if (flag) { return(buttonDownEx); } } try { return(Input.GetButtonDown(axisName)); } catch (UnityException) { } return(false); }
// Token: 0x060007E1 RID: 2017 RVA: 0x000345A8 File Offset: 0x000329A8 public static float GetAxisRaw(string axisName) { if (CFInput.ControllerActive()) { bool flag = false; float axisEx = CFInput.ctrl.GetAxisEx(axisName, out flag); if (flag) { return(axisEx); } } try { return(Input.GetAxisRaw(axisName)); } catch (UnityException) { } return(0f); }