bool Widget::TriggerJoystickAxisMove(const JoystickAxisMotionEvent &event, bool handled) { HandleJoystickAxisMove(event); if (!handled) handled = onJoystickAxisMove.emit(event); if (GetContainer()) handled = GetContainer()->TriggerJoystickAxisMove(event, handled); return handled; }
bool Widget::TriggerJoystickAxisMove(const JoystickAxisMotionEvent &event, bool emit) { HandleJoystickAxisMove(event); if (emit) emit = !onJoystickAxisMove.emit(event); if (GetContainer()) GetContainer()->TriggerJoystickAxisMove(event, emit); return !emit; }