idTech4.idSession.GuiFrameEvents C# (CSharp) Method

GuiFrameEvents() public method

public GuiFrameEvents ( ) : void
return void
		public void GuiFrameEvents()
		{
			// stop generating move and button commands when a local console or menu is active
			// running here so SP, async networking and no game all go through it
			// TODO: inhibit usercmd in console
			/*if ( console->Active() || guiActive ) {
				usercmdGen->InhibitUsercmd( INHIBIT_SESSION, true );
			} else {
				usercmdGen->InhibitUsercmd( INHIBIT_SESSION, false );
			}*/

			idUserInterface gui;

			if(_guiTest != null)
			{
				gui = _guiTest;
			}
			else if(_guiActive != null)
			{
				gui = _guiActive;
			}
			else
			{
				return;
			}

			string cmd = gui.HandleEvent(new SystemEvent(SystemEventType.None), idE.System.FrameTime);

			if(cmd != string.Empty)
			{
				idConsole.Warning("TODO: DispatchCommand(guiActive, cmd);");
			}
		}