private static void UpdateDevices(float deltaTime) { int count = devices.Count; for (int i = 0; i < count; i++) { InputDevice inputDevice = devices[i]; inputDevice.Update(currentTick, deltaTime); } if (InputManager.OnUpdateDevices != null) { InputManager.OnUpdateDevices(currentTick, deltaTime); } }