Open AlmasB opened 2 years ago
how about a general method of mouse event like
entityBuilder.onMouseEvent((entity, event) -> {
if(event instanceof MouseDragEvent dragEvent){
//drag event handler
}else{
//other normal mouse event handler
}
});
?
Discussed in https://github.com/AlmasB/FXGL/discussions/1099