Пример #1
0
        public static void AddDeviceManager( InputDeviceManager inputDeviceManager )
        {
            AssertIsSetup();

            inputDeviceManagers.Add( inputDeviceManager );
            inputDeviceManager.Update( currentTime );
        }
Пример #2
0
        public static void AddDeviceManager(InputDeviceManager inputDeviceManager)
        {
            AssertIsSetup();

            inputDeviceManagers.Add(inputDeviceManager);
            inputDeviceManager.Update(currentTime, currentTime - lastUpdateTime);
        }
Пример #3
0
        public static void AddDeviceManager(InputDeviceManager deviceManager)
        {
            AssertIsSetup();
            Type type = deviceManager.GetType();

            if (deviceManagerTable.ContainsKey(type))
            {
                Logger.LogError("A device manager of type '" + type.Name + "' already exists; cannot add another.");
                return;
            }
            deviceManagers.Add(deviceManager);
            deviceManagerTable.Add(type, deviceManager);
            deviceManager.Update(currentTick, currentTime - lastUpdateTime);
        }