void PhysicallyBasedShadingApp::mouseDown( MouseEvent event )
{
	mMayaCam.mouseDown( event.getPos() );
}
示例#2
0
void fsExperiments::mouseDrag( MouseEvent event )
{
	mArcball.mouseDrag( event.getPos() );
}
示例#3
0
void ShadedSphereApp::mouseMove( MouseEvent event )
{
	mMousePos = event.getPos();
}
示例#4
0
void BasicApp::mouseDrag( MouseEvent event )
{
	mArcball.mouseDrag( event.getPos() );
}
void BranchingExperiment_2App::mouseDown( MouseEvent event )
{   
    mouseIsPressed = true;
    mMouseLoc = event.getPos();
}
void HexagonMirrorApp::mouseDown( MouseEvent event )
{
	mCamera.mouseDown( event.getPos() );
}
void DeferredRenderingApp::mouseDown( MouseEvent event )
{
    if( event.isAltDown() ) {
		mMayaCam.mouseDown( event.getPos() );
    }
}
	void mouseDown( MouseEvent event )
	{
		mArcball.mouseDown( event.getPos() );
	}
	void mouseDrag( MouseEvent event )
	{
		mArcball.mouseDrag( event.getPos() );
	}
示例#10
0
文件: BasicApp.cpp 项目: Ahbee/Cinder
void BasicApp::mouseDrag( MouseEvent event )
{
	// Store the current mouse position in the list.
	mPoints.push_back( event.getPos() );
}
示例#11
0
void p5drawingApp::mouseMove(MouseEvent event)
{
    mousePos = event.getPos();
}
示例#12
0
void StarsApp::mouseUp( MouseEvent event )
{
	// allow user to control camera
	mCamera.mouseUp( event.getPos() );
}
示例#13
0
void StarsApp::mouseDrag( MouseEvent event )
{
	// allow user to control camera
	mCamera.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
void PhysicallyBasedShadingApp::mouseDrag( MouseEvent event )
{
	mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
示例#15
0
void HiKinectApp::mouseDown( MouseEvent event ) {
	mIsMouseDown = true;
	mCamUI.mouseDown(event.getPos());
}
void BubbleChamberApp::mouseDown( MouseEvent event )
{
	mMouseDownPos = event.getPos();
	mMousePressed = true;
	mMouseOffset = Vec2f::zero();
}
示例#17
0
void HiKinectApp::mouseDrag( MouseEvent event ) {
	mouseMove( event );
	mCamUI.mouseDrag(event.getPos(), event.isLeftDown(), event.isControlDown(), event.isAltDown());
}
void BubbleChamberApp::mouseMove( MouseEvent event )
{
	mMousePos = event.getPos();
}
void HexagonMirrorApp::mouseDrag( MouseEvent event )
{
	mCamera.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
void Fluid2DParticleSoupApp::mouseDown( MouseEvent event )
{
	mPrevPos = event.getPos();
}
void DeferredRenderingApp::mouseDrag( MouseEvent event )
{
    if( event.isAltDown() ) {
		mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
    }
}
示例#22
0
void TestbedApp::mouseDown( MouseEvent event )
{
#if defined( CINDER_GL_ES )
	if( mLeftButton.contains( event.getPos() ) ) {
		--testSelection;
		if (testSelection < 0)
		{
			testSelection = testCount - 1;
		}
		return;
	}
	else if( mRightButton.contains( event.getPos() ) ) {
		++testSelection;
		if (testSelection == testCount)
		{
			testSelection = 0;
		}
		return;
	}
#endif

	int x = event.getPos().x;
	int y = event.getPos().y;
	int button = GLUT_NONE;
	int state = GLUT_NONE;
	int mod = GLUT_NONE;
	if( event.isLeft() ) {
		button = GLUT_LEFT_BUTTON;
		if( event.isLeftDown() ) {
			state = GLUT_DOWN;
		}
	}
	else if( event.isRight() ) {
		button = GLUT_RIGHT_BUTTON;
		if( event.isRightDown() ) {
			state = GLUT_DOWN;
		}
	}

	if (button == GLUT_LEFT_BUTTON)
	{
		b2Vec2 p = ConvertScreenToWorld(x, y);

		switch (fullscreenUI.Mouse(button, state, previousMouseState, p))
		{
		case FullscreenUI::e_SelectionTestPrevious:
			testSelection = std::max(0, testSelection - 1);
			break;
		case FullscreenUI::e_SelectionTestNext:
			if (g_testEntries[testSelection + 1].name) testSelection++;
			break;
		case FullscreenUI::e_SelectionParameterPrevious:
			particleParameter.Decrement();
			break;
		case FullscreenUI::e_SelectionParameterNext:
			particleParameter.Increment();
			break;
		default:
			break;
		}

		if (state == GLUT_DOWN)
		{
			b2Vec2 p = ConvertScreenToWorld(x, y);
			if (mod == GLUT_ACTIVE_SHIFT)
			{
				test->ShiftMouseDown(p);
			}
			else
			{
				test->MouseDown(p);
			}
		}

		/*
		if (state == GLUT_UP)
		{
			test->MouseUp(p);
		}
		*/
	}
	else if (button == GLUT_RIGHT_BUTTON)
	{
		if (state == GLUT_DOWN)
		{
			lastp = ConvertScreenToWorld(x, y);
			rMouseDown = true;
		}

		/*
		if (state == GLUT_UP)
		{
			rMouseDown = false;
		}
		*/
	}
	previousMouseState = state;
}
示例#23
0
void RDiffusionApp::mouseDrag( MouseEvent event )
{
	mMouse = event.getPos();
}
示例#24
0
void BasicApp::mouseDown(MouseEvent event)
{
	mMayaCam.mouseDown(event.getPos());
}
void BranchingExperiment_2App::mouseMove( MouseEvent event )
{   
    mMouseVel = ( event.getPos() - mMouseLoc );
	mMouseLoc = event.getPos();
}
示例#26
0
	// マウスダウン
	void mouseDown(MouseEvent event)
	{
		mMayaCam.mouseDown(event.getPos());
	}
示例#27
0
void ShadedSphereApp::mouseDown( MouseEvent event )
{
	mMouseDownPos = event.getPos();
	mMousePressed = true;
	mMouseOffset = Vec2f::zero();
}
示例#28
0
	// マウスのドラッグ
	void mouseDrag(MouseEvent event)
	{
		mMayaCam.mouseDrag(event.getPos(), event.isLeftDown(),
			event.isMiddleDown(), event.isRightDown());
	}
void ShapeManipulationApp::mouseMove( MouseEvent event )
{
    mMousePos = event.getPos();
}
示例#30
0
void NanoApp::mouseMove (MouseEvent event)
{
   mousePos = event.getPos();
   gui->mouseMove (event);
}