Fix cursor interaction with widgets

This commit is contained in:
Paul Chote
2010-07-20 23:51:55 +12:00
parent 5abe52607d
commit bd69047e8c
7 changed files with 24 additions and 30 deletions

View File

@@ -69,7 +69,6 @@ namespace OpenRA
return false;
}
public bool HandleKeyPress(KeyInput e)
{
if (Widget.SelectedWidget != null)
@@ -79,13 +78,5 @@ namespace OpenRA
return true;
return false;
}
public bool HitTest(int2 mousePos)
{
if (Widget.SelectedWidget != null)
return true;
return rootWidget.HitTest(mousePos);
}
}
}