bool Widget::TriggerJoystickHatMove(const JoystickHatMotionEvent &event, bool handled) { HandleJoystickHatMove(event); if (!handled) handled = onJoystickHatMove.emit(event); if (GetContainer()) handled = GetContainer()->TriggerJoystickHatMove(event, handled); return handled; }
bool Widget::TriggerJoystickHatMove(const JoystickHatMotionEvent &event, bool emit) { HandleJoystickHatMove(event); if (emit) emit = !onJoystickHatMove.emit(event); if (GetContainer()) GetContainer()->TriggerJoystickHatMove(event, emit); return !emit; }