Esempio n. 1
0
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;
}
Esempio n. 2
0
bool Widget::TriggerJoystickHatMove(const JoystickHatMotionEvent &event, bool emit)
{
	HandleJoystickHatMove(event);
	if (emit) emit = !onJoystickHatMove.emit(event);
	if (GetContainer()) GetContainer()->TriggerJoystickHatMove(event, emit);
	return !emit;
}