예제 #1
0
bool Widget::TriggerJoystickButtonUp(const JoystickButtonEvent &event, bool handled)
{
	HandleJoystickButtonUp(event);
	if (!handled) handled = onJoystickButtonUp.emit(event);
	if (GetContainer()) handled = GetContainer()->TriggerJoystickButtonUp(event, handled);
	return handled;
}
예제 #2
0
파일: Widget.cpp 프로젝트: Faiva78/pioneer
bool Widget::TriggerJoystickButtonUp(const JoystickButtonEvent &event, bool emit)
{
	HandleJoystickButtonUp(event);
	if (emit) emit = !onJoystickButtonUp.emit(event);
	if (GetContainer()) GetContainer()->TriggerJoystickButtonUp(event, emit);
	return !emit;
}