Well, it's quite simple.
Actually the SelectionManager is able to react to three kind of event:
- left click for selection
- hold left click for moving
- right click for context menu
It will be perfect if we can react on the double clic.
For example the usage can be:
- picking object on the floor by doubleclicking them,
- attacking opponents
- auto-zoom on some objects
It can be done in multiple ways. One method could be to add a boolean field in the SelectionListener like this:
void selectionChanged( List< Selectable > selection, List< Selectable > selectedContext, boolean doubleclick );
or by adding a new method in the listener
void onDoubleClick( List< Selectable > selection, List< Selectable > selectedContext);