static CrossPlatformInputManager()
 {
     s_TouchInput    = new MobileInput();
     s_HardwareInput = new StandaloneInput();
     s_HybridInput   = new HybridInput();
     activeInput     = s_HybridInput;
 }
Exemple #2
0
 static CrossPlatformInputManager()
 {
     s_TouchInput    = new MobileInput();
     s_HardwareInput = new StandaloneInput();
     s_HybridInput   = new MultiplexorInput(new[] { s_HardwareInput, s_TouchInput }, s_TouchInput);
     SwitchActiveInputMethod(ActiveInputMethod.Hybrid);
 }
 static CrossPlatformInputManager()
 {
     #if MOBILE_INPUT
     virtualInput = new MobileInput ();
     #else
     virtualInput = new StandaloneInput();
     #endif
 }
        static CrossPlatformInputManager()
        {
#if MOBILE_INPUT
            virtualInput = new MobileInput();
#else
            virtualInput = new StandaloneInput();
#endif
        }
        static CrossPlatformInputManager()
        {
            s_HardwareInput = new StandaloneInput();
#if MOBILE_INPUT
            activeInput = s_TouchInput;
#else
            activeInput = s_HardwareInput;
#endif
        }
Exemple #6
0
 public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
 {
     switch (activeInputMethod)
     {
     case ActiveInputMethod.Hardware:
         activeInput = s_HardwareInput;
         break;
     }
 }
 static CrossPlatformInputManager()
 {
     s_TouchInput = new MobileInput();
     s_HardwareInput = new StandaloneInput();
     #if MOBILE_INPUT
     activeInput = s_TouchInput;
     #else
     activeInput = s_HardwareInput;
     #endif
 }
Exemple #8
0
        static CrossPlatformInput()
        {
            s_touchInput    = new MobileInput();
            s_hardwareInput = new StandaloneInput();
#if MOBILE_INPUT
            s_activeInput = s_touchInput;
#else
            s_activeInput = s_hardwareInput;
#endif
        }
Exemple #9
0
        static CrossPlatformInputManager()
        {
            s_TouchInput    = new MobileInput();
            s_HardwareInput = new StandaloneInput();
#if UNITY_IOS || UNITY_ANDROID || UNITY_WP8 || UNITY_IPHONE
            activeInput = s_TouchInput;
#else
            activeInput = s_HardwareInput;
#endif
        }
Exemple #10
0
        static CrossPlatformInputManager()
        {
            s_TouchInput    = new MobileInput();
            s_HardwareInput = new StandaloneInput();
#if MOBILE_INPUT || UNITY_WINRT || UNITY_WINRT_10_0
            activeInput = s_TouchInput;
#else
            activeInput = s_HardwareInput;
#endif
        }
Exemple #11
0
        static CrossPlatformInputManager()
        {
            Debug.Log("InitTiming");
            s_TouchInput    = new MobileInput();
            s_HardwareInput = new StandaloneInput();
#if MOBILE_INPUT
            activeInput = s_TouchInput;
#else
            activeInput = s_HardwareInput;
#endif
        }
		public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
		{
			switch (activeInputMethod)
			{
				case ActiveInputMethod.Hardware:
					activeInput = s_HardwareInput;
					break;

				case ActiveInputMethod.Touch:
					activeInput = s_TouchInput;
					break;
			}
		}
        public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
        {
            activeInput = s_TouchInput;

            /*switch (activeInputMethod)
             * {
             *      case ActiveInputMethod.Hardware:
             *              activeInput = s_HardwareInput;
             *              break;
             *
             *      case ActiveInputMethod.Touch:
             *              activeInput = s_TouchInput;
             *              break;
             * }*/
        }
        static CrossPlatformInputManager()
        {
            s_TouchInput    = new MobileInput();
            s_HardwareInput = new StandaloneInput();

            activeInput = s_TouchInput;

/*
 #if MOBILE_INPUT
 *          activeInput = s_TouchInput;
 #else
 *                      activeInput = s_HardwareInput;
 #endif
 */
        }
Exemple #15
0
        public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
        {
            switch (activeInputMethod)
            {
            case ActiveInputMethod.Hardware:
                s_activeInput = s_hardwareInput;
                break;

            case ActiveInputMethod.Touch:
                s_activeInput = s_touchInput;
                break;

            default:
                throw new ArgumentOutOfRangeException("activeInputMethod", activeInputMethod, null);
            }
        }
Exemple #16
0
        public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
        {
            switch (activeInputMethod)
            {
            case ActiveInputMethod.Hardware:
                activeInput = s_HardwareInput;
                break;

            case ActiveInputMethod.Touch:
                activeInput = s_TouchInput;
                break;

            case ActiveInputMethod.Hybrid:
                activeInput = s_HybridInput;
                break;
            }
        }
Exemple #17
0
        static CrossPlatformInputManager()
        {
            s_TouchInput    = new MobileInput();
            s_HardwareInput = new StandaloneInput();
//#if MOBILE_INPUT
            if (Application.isMobilePlatform)
            {
                activeInput = s_TouchInput;
            }
            else
            {
                activeInput = s_HardwareInput;
            }
//#else

//#endif
        }
 public static void useHardwareInput()
 {
     activeInput = s_HardwareInput;
 }
Exemple #19
0
 public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
 {
     activeInput = s_HardwareInput;
 }
Exemple #20
0
 static CrossPlatformInputManager()
 {
     s_HardwareInput = new StandaloneInput();
     activeInput     = s_HardwareInput;
 }
Exemple #21
0
 static CrossPlatformInputManager()
 {
     s_TouchInput = new MobileInput();
     activeInput  = s_TouchInput;
 }
 public static void SetActiveInputMethod(VirtualInput virtualInput)
 {
     activeInput = virtualInput;
 }
 public static void useTouchInput()
 {
     activeInput = s_TouchInput;
 }
 static CrossPlatformInputManager()
 {
     activeInput = new StandaloneInput();
 }