private bool ProcessMenuEvent(SystemEvent ev)
{
if(_guiActive == null)
{
return true;
}
string menuCommand = _guiActive.HandleEvent(ev, idE.System.FrameTime);
if((menuCommand != null) && (menuCommand.Length > 0))
{
idConsole.Warning("TODO: key binding");
// if the menu didn't handle the event, and it's a key down event for an F key, run the bind
// TODO: keys
/*if ( event->evType == SE_KEY && event->evValue2 == 1 && event->evValue >= K_F1 && event->evValue <= K_F12 ) {
idKeyInput::ExecKeyBinding( event->evValue );
}*/
}
else
{
DispatchCommand(_guiActive, menuCommand);
}
return true;
}