bool Widget::TriggerJoystickButtonDown(const JoystickButtonEvent &event, bool handled) { HandleJoystickButtonDown(event); if (!handled) handled = onJoystickButtonDown.emit(event); if (GetContainer()) handled = GetContainer()->TriggerJoystickButtonDown(event, handled); return handled; }
bool Widget::TriggerJoystickButtonDown(const JoystickButtonEvent &event, bool emit) { HandleJoystickButtonDown(event); if (emit) emit = !onJoystickButtonDown.emit(event); if (GetContainer()) GetContainer()->TriggerJoystickButtonDown(event, emit); return !emit; }