Fix mouse support in menus and first screen

This commit is contained in:
Xawotihs
2010-11-20 00:33:37 +00:00
parent 58abfaa8e6
commit 3725958fc3
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ public:
virtual bool ButtonPressed(); // action button pressed, return false to ignore
// Used for mouse support so that the GUI engine can found out which Object was selected
virtual bool getTopLeft(int& top, int& left)
virtual bool getTopLeft(float& top, float& left)
{
return false;
}
+1 -1
View File
@@ -162,7 +162,7 @@ bool JGuiController::CheckUserInput(JButton key)
{
for (int i = 0; i < mCount; i++)
{
int top, left;
float top, left;
if (mObjects[i]->getTopLeft(top, left))
{
distance2 = (top - y) * (top - y) + (left - x) * (left - x);