Exemplo n.º 1
0
        private static void CommitDevices(float deltaTime)
        {
            int count = devices.Count;

            for (int i = 0; i < count; i++)
            {
                InputDevice inputDevice = devices[i];
                inputDevice.Commit(currentTick, deltaTime);
                if (inputDevice.CommandWasPressed)
                {
                    CommandWasPressed = true;
                }
            }
            if (InputManager.OnCommitDevices != null)
            {
                InputManager.OnCommitDevices(currentTick, deltaTime);
            }
        }