static CrossPlatformInputManager()
 {
     s_TouchInput    = new MobileInput();
     s_HardwareInput = new StandaloneInput();
     s_HybridInput   = new HybridInput();
     activeInput     = s_HybridInput;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 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
        }
Ejemplo n.º 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
 }
Ejemplo n.º 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
        }
Ejemplo n.º 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
        }
Ejemplo n.º 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
        }
Ejemplo n.º 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
 */
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 19
0
 public static void SwitchActiveInputMethod(ActiveInputMethod activeInputMethod)
 {
     activeInput = s_HardwareInput;
 }
Ejemplo n.º 20
0
 static CrossPlatformInputManager()
 {
     s_HardwareInput = new StandaloneInput();
     activeInput     = s_HardwareInput;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 24
0
 static CrossPlatformInputManager()
 {
     activeInput = new StandaloneInput();
 }