void PhysicallyBasedShadingApp::mouseDown( MouseEvent event ) { mMayaCam.mouseDown( event.getPos() ); }
void fsExperiments::mouseDrag( MouseEvent event ) { mArcball.mouseDrag( event.getPos() ); }
void ShadedSphereApp::mouseMove( MouseEvent event ) { mMousePos = event.getPos(); }
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() ); }
void BasicApp::mouseDrag( MouseEvent event ) { // Store the current mouse position in the list. mPoints.push_back( event.getPos() ); }
void p5drawingApp::mouseMove(MouseEvent event) { mousePos = event.getPos(); }
void StarsApp::mouseUp( MouseEvent event ) { // allow user to control camera mCamera.mouseUp( event.getPos() ); }
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() ); }
void HiKinectApp::mouseDown( MouseEvent event ) { mIsMouseDown = true; mCamUI.mouseDown(event.getPos()); }
void BubbleChamberApp::mouseDown( MouseEvent event ) { mMouseDownPos = event.getPos(); mMousePressed = true; mMouseOffset = Vec2f::zero(); }
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() ); } }
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; }
void RDiffusionApp::mouseDrag( MouseEvent event ) { mMouse = event.getPos(); }
void BasicApp::mouseDown(MouseEvent event) { mMayaCam.mouseDown(event.getPos()); }
void BranchingExperiment_2App::mouseMove( MouseEvent event ) { mMouseVel = ( event.getPos() - mMouseLoc ); mMouseLoc = event.getPos(); }
// マウスダウン void mouseDown(MouseEvent event) { mMayaCam.mouseDown(event.getPos()); }
void ShadedSphereApp::mouseDown( MouseEvent event ) { mMouseDownPos = event.getPos(); mMousePressed = true; mMouseOffset = Vec2f::zero(); }
// マウスのドラッグ void mouseDrag(MouseEvent event) { mMayaCam.mouseDrag(event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown()); }
void ShapeManipulationApp::mouseMove( MouseEvent event ) { mMousePos = event.getPos(); }
void NanoApp::mouseMove (MouseEvent event) { mousePos = event.getPos(); gui->mouseMove (event); }