Ejemplo n.º 1
0
void ProceduralAnimApp::mouseDrag( MouseEvent event )
{
	// Added support for international mac laptop keyboards.
	bool middle = event.isMiddleDown() || ( event.isMetaDown() && event.isLeftDown() );
	bool right = event.isRightDown() || ( event.isControlDown() && event.isLeftDown() );
	mMayaCam.mouseDrag( event.getPos(), event.isLeftDown() && !middle && !right, middle, right );
}
Ejemplo n.º 2
0
void ObjLoaderApp::mouseDrag( MouseEvent event )
{
    if( event.isMetaDown() )
        mCamUi.mouseDrag( event );
    else
        mArcball.mouseDrag( event );
}
Ejemplo n.º 3
0
void _TBOX_PREFIX_App::mouseDrag( MouseEvent event )
{
	mMousePos = event.getPos();
	
	// Added/hacked support for international mac laptop keyboards.
	bool middle = event.isMiddleDown() || ( event.isMetaDown() && event.isLeftDown() );
	bool right = event.isRightDown() || ( event.isControlDown() && event.isLeftDown() );
	mMayaCam.mouseDrag( event.getPos(), event.isLeftDown() && !middle && !right, middle, right );}
Ejemplo n.º 4
0
void PointCloudApp::mouseDrag( MouseEvent event )
{
	bool middle = event.isMiddleDown()	|| ( event.isMetaDown()		&& event.isLeftDown() );
	bool right	= event.isRightDown()	|| ( event.isControlDown()	&& event.isLeftDown() );
	mCamUi.mouseDrag( event.getPos(), event.isLeftDown() && !middle && !right, middle, right );
}