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 );
}
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 );}
void GpGpuApp::mouseDrag( MouseEvent event )
{
	if ( event.isControlDown() ) {
		mArcball.mouseDrag( event.getPos() );
	} else {
		Vec2f pos		= Vec2f( event.getPos() );
		mMouseVelocity	= pos - mMouse;
		mMouse			= pos;
	}
}
void GpGpuApp::mouseDown( MouseEvent event )
{
	if ( event.isControlDown() ) {
		mArcball.mouseDown( event.getPos() );
	} else {
		mMouseVelocity	= Vec2f::zero();
		mMouse			= Vec2f( event.getPos() );
		mMouseDown		= true;
	}
}
Beispiel #5
0
void EnhanceApp::mouseDown( MouseEvent event )
{

    mClickDown = event.getPos();
    if( event.isAltDown() ){
        mAltLockDown = true;

    }
    if( event.isControlDown() ){
        mCtlDown = true;
    }

}
void HiKinectApp::mouseDrag( MouseEvent event ) {
	mouseMove( event );
	mCamUI.mouseDrag(event.getPos(), event.isLeftDown(), event.isControlDown(), event.isAltDown());
}
Beispiel #7
0
void MultiTouchApp::mouseDown( MouseEvent event )
{
	console() << "Mouse down: " << event.isRight() << " & " << event.isControlDown() << std::endl;	
}
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 );
}