Пример #1
0
        public static void Initialize()
        {
#if WINDOWS
            KeyInput.Initialize();
            GamePad.Initialize();
            GamePad360.Initialize();
#endif
            Instance = new Input();
        }
Пример #2
0
        public static void Initialize()
        {
            if (PlatformLinkedLibSingleton.RunningOnUnix)
            {
                OTK_Keyboard.Initialize();
//				OTK_Gamepad.Initialize();
            }
            else
            {
                KeyInput.Initialize();
                IPCKeyInput.Initialize();
                GamePad.Initialize();
                GamePad360.Initialize();
            }
            Instance = new Input();
        }
Пример #3
0
 public static void Initialize(Control parent)
 {
     if (OSTailoredCode.IsUnixHost)
     {
         OTK_Keyboard.Initialize();
         OTK_GamePad.Initialize();
     }
     else
     {
         KeyInput.Initialize(parent);
         IPCKeyInput.Initialize();
         GamePad.Initialize(parent);
         GamePad360.Initialize();
     }
     Instance = new Input();
 }
Пример #4
0
        public static void Initialize()
        {
            if (OSTailoredCode.CurrentOS == OSTailoredCode.DistinctOS.Windows)
            {
                KeyInput.Initialize();
                IPCKeyInput.Initialize();
                GamePad.Initialize();
                GamePad360.Initialize();
            }
            else
            {
                OTK_Keyboard.Initialize();
//				OTK_Gamepad.Initialize();
            }
            Instance = new Input();
        }
Пример #5
0
        public static void Initialize()
        {
            if (Global.RunningOnUnix)
            {
                OTK_Keyboard.Initialize();
//				OTK_Gamepad.Initialize();
            }
            else
            {
                KeyInput.Initialize();
                IPCKeyInput.Initialize();
                GamePad.Initialize();
                GamePad360.Initialize();
            }
            Instance = new Input();
        }
Пример #6
0
 public static void Initialize()
 {
     if (OSTailoredCode.IsWindows())
     {
         KeyInput.Initialize();
         IPCKeyInput.Initialize();
         GamePad.Initialize();
         GamePad360.Initialize();
     }
     else
     {
         OTK_Keyboard.Initialize();
         OTK_GamePad.Initialize();
     }
     Instance = new Input();
 }
Пример #7
0
 public void FirstInitAll(IntPtr mainFormHandle)
 {
     KeyInput.Initialize(mainFormHandle);
     IPCKeyInput.Initialize();
     ReInitGamepads(mainFormHandle);
 }