public void dispatch() {
if (action != null) {
action.DO();
+ inButtonPress = false;
}
}
this.mouse = mouse;
if (inButtonPress && mouse.isMouse1()) {
- inButtonPress = false;
// Dispatch the event
- if (action != null) {
- action.DO();
- }
+ dispatch();
}
}
|| keypress.equals(kbSpace)
) {
// Dispatch
- if (action != null) {
- action.DO();
- }
+ dispatch();
return;
}