I have read the relevant post in the Flambe guide but couldn't see any use of the clone() function. The APIs of the various event classes (like the PointerEvent class) contain this note:
NOTE: For performance reasons, PointerEvent instances are reused by Flambe. Use clone() to retain a reference to an event.
I have 3 questions:
- Is it possible that a PointerEvent object will change even though my code is still working on it?
- When should I use the clone() function?
- Are there any other best practices that I should know about when dealing with events in Flambe?