Beispiel #1
0
void CameraUi::mouseDrag( app::MouseEvent &event )
{
	bool isLeftDown = event.isLeftDown();
	bool isMiddleDown = event.isMiddleDown() || event.isAltDown();
	bool isRightDown = event.isRightDown() || event.isControlDown();

	if( isMiddleDown )
		isLeftDown = false;

	mouseDrag( event.getPos(), isLeftDown, isMiddleDown, isRightDown );
	event.setHandled();
}
Beispiel #2
0
void CameraUi::mouseWheel( app::MouseEvent &event )
{
	mouseWheel( event.getWheelIncrement() );
	event.setHandled();
}
Beispiel #3
0
void CameraUi::mouseUp( app::MouseEvent &event )
{
	mouseUp( event.getPos() );
	event.setHandled();
}