GUI2/Distributor: silence an unhandled event warning
I did notice this seemed able to arise after555d8b667d
and/or0571fefda3
, but these have never really been issues to worry about.
This commit is contained in:
parent
209b525f67
commit
c6bda4f936
1 changed files with 2 additions and 0 deletions
|
@ -461,8 +461,10 @@ void mouse_button<T>::signal_handler_sdl_button_up(const event::ui_event event,
|
|||
DBG_GUI_E << LOG_HEADER << event << ".\n";
|
||||
|
||||
if(!is_down_) {
|
||||
#ifdef GUI2_SHOW_UNHANDLED_EVENT_WARNINGS
|
||||
WRN_GUI_E << LOG_HEADER << event
|
||||
<< ". The mouse button is already up, we missed an event.\n";
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
is_down_ = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue