bool Widget::TriggerJoystickButtonUp(const JoystickButtonEvent &event, bool handled) { HandleJoystickButtonUp(event); if (!handled) handled = onJoystickButtonUp.emit(event); if (GetContainer()) handled = GetContainer()->TriggerJoystickButtonUp(event, handled); return handled; }
bool Widget::TriggerJoystickButtonUp(const JoystickButtonEvent &event, bool emit) { HandleJoystickButtonUp(event); if (emit) emit = !onJoystickButtonUp.emit(event); if (GetContainer()) GetContainer()->TriggerJoystickButtonUp(event, emit); return !emit; }