void CameraUi::mouseDrag( app::MouseEvent &event ) { bool isLeftDown = event.isLeftDown(); bool isMiddleDown = event.isMiddleDown() || event.isAltDown(); bool isRightDown = event.isRightDown() || event.isControlDown(); if( isMiddleDown ) isLeftDown = false; mouseDrag( event.getPos(), isLeftDown, isMiddleDown, isRightDown ); event.setHandled(); }
void CameraUi::mouseWheel( app::MouseEvent &event ) { mouseWheel( event.getWheelIncrement() ); event.setHandled(); }
void CameraUi::mouseUp( app::MouseEvent &event ) { mouseUp( event.getPos() ); event.setHandled(); }