Пример #1
0
	void State::notifyMouseButtonClick(MyGUI::WidgetPtr _sender)
	{
		if (_sender == mButton1) eventButtonPress(ControllerType::Inertional);
		else if (_sender == mButton2) eventButtonPress(ControllerType::Accelerated);
		else if (_sender == mButton3) eventButtonPress(ControllerType::Slowed);
		else if (_sender == mButton4) eventButtonPress(ControllerType::Jump);
	}
Пример #2
0
	void State::notifyPostAction(MyGUI::Widget* _sender, MyGUI::ControllerItem* _controller)
	{
		eventButtonPress(ControllerType::Slowed, true);
	}