Example #1
0
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;
}
Example #2
0
bool Widget::TriggerJoystickButtonDown(const JoystickButtonEvent &event, bool emit)
{
	HandleJoystickButtonDown(event);
	if (emit) emit = !onJoystickButtonDown.emit(event);
	if (GetContainer()) GetContainer()->TriggerJoystickButtonDown(event, emit);
	return !emit;
}