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 ObjLoaderApp::mouseDrag( MouseEvent event ) { if( event.isMetaDown() ) mCamUi.mouseDrag( event ); else mArcball.mouseDrag( event ); }
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 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 ); }