Пример #1
0
 internal static void UpdateInternal()
 {
     AssertIsSetup();
     if (InputManager.OnSetup != null)
     {
         InputManager.OnSetup();
         InputManager.OnSetup = null;
     }
     if (enabled && (!SuspendInBackground || applicationIsFocused))
     {
         currentTick++;
         UpdateCurrentTime();
         float num = currentTime - lastUpdateTime;
         UpdateDeviceManagers(num);
         CommandWasPressed = false;
         UpdateDevices(num);
         CommitDevices(num);
         UpdateActiveDevice();
         UpdatePlayerActionSets(num);
         if (InputManager.OnUpdate != null)
         {
             InputManager.OnUpdate(currentTick, num);
         }
         lastUpdateTime = currentTime;
     }
 }