void VoronoiGpuApp::mouseUp( MouseEvent event ) { if ( event.isMiddle() ) { mPointMovedIt = mPoints.end(); } }
void planetsApp::mouseUp(MouseEvent event) { if (event.isLeft()) { float curTime = getElapsedSeconds(); if (curTime - lastClickTime <= 0.25 && !doubleClick) { doubleClick = true; Vec3f start, dir; mCam.getPickingRay(event.getPos(), start, dir); selected = cont.pickPlanet(start, dir); point1 = start; dir1 = dir * 1000; if (selected) tracking = true; else if (!selected && tracking) tracking = false; }else doubleClick = false; lastClickTime = curTime; } if(event.isMiddle() && tracking) { } }
void InputEvent::mouseUp(MouseEvent event) { if (event.isLeft()) { setPull(MouseEvent::LEFT_DOWN); erasePress(MouseEvent::LEFT_DOWN); } if (event.isRight()) { setPull(MouseEvent::RIGHT_DOWN); erasePress(MouseEvent::RIGHT_DOWN); } if (event.isMiddle()) { setPull(MouseEvent::MIDDLE_DOWN); erasePress(MouseEvent::MIDDLE_DOWN); } }
void InputEvent::mouseDown(MouseEvent event) { if (event.isLeft()) { setPush(MouseEvent::LEFT_DOWN); setPress(MouseEvent::LEFT_DOWN); } if (event.isRight()) { setPush(MouseEvent::RIGHT_DOWN); setPress(MouseEvent::RIGHT_DOWN); } if (event.isMiddle()) { setPush(MouseEvent::MIDDLE_DOWN); setPress(MouseEvent::MIDDLE_DOWN); } }