public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod) { switch (activeInputMethod) { case ActiveInputMethod.Hardware: activeInput = s_HardwareInput; break; case ActiveInputMethod.Touch: activeInput = s_TouchInput; break; } }
static IKD_CrossPlatformInputManager() { s_TouchInput = new IKD_MobileInput(); s_HardwareInput = new IKD_StandaloneInput(); if (TurnTheGameOn.IKDriver.IKD_StaticUtility.m_IKD_UtilitySettings.useMobileController) { activeInput = s_TouchInput; } else { activeInput = s_HardwareInput; } }