Only allow sprites and objects to be clicked with the first mouse button.
Will this change be as ill received as removing "P" from chat? Who knows. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3278 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -409,13 +409,17 @@ public class MisoScenePanel extends VirtualMediaPanel
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_hobject instanceof Sprite) {
|
if (e.getButton() == MouseEvent.BUTTON1) {
|
||||||
handleSpritePressed((Sprite)_hobject, e.getX(), e.getY());
|
if (_hobject instanceof Sprite) {
|
||||||
} else if (_hobject instanceof SceneObject) {
|
handleSpritePressed((Sprite)_hobject, e.getX(), e.getY());
|
||||||
handleObjectPressed((SceneObject)_hobject, e.getX(), e.getY());
|
return;
|
||||||
} else {
|
} else if (_hobject instanceof SceneObject) {
|
||||||
handleMousePressed(_hobject, e);
|
handleObjectPressed((SceneObject)_hobject, e.getX(), e.getY());
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// if not button1, or _hobject not Sprite or SceneObject...
|
||||||
|
handleMousePressed(_hobject, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user