Closed AquariusPower closed 5 years ago
If I read this and the forum post correctly... if a spatial has both cursor listeners and mouse listeners then the event will be delivered to all of them even if one of the listeners consumes the event. This was to simulate the same behavior from when both listeners were in the same list.
Basically, if an event is already being delivered to a Spatial's listeners because it is not consumed yet... then it will be delivered to ALL of that spatial's listeners. They can choose to look at the isConsumed() or not as needed but the thinking is that multiple listeners on the same spatial must be coordinating something.
...and otherwise, listener order would become critical and that's not a pleasant thing for an application to manage.
I'm going to close the issue assuming that's the case... but if it's not and I'm just being dumb then reopen it with additional explanation.
topic: https://hub.jmonkeyengine.org/t/cursorlistener-vs-mouselistener-when-to-use-each-do-they-cope/38332/3
test case (click once on the button):