void SimpleMultiThreadedSenderApp::mouseUp( MouseEvent event ) { osc::Message msg( "/mouseclick/1" ); msg.append( (float)event.getPos().x / getWindowWidth() ); msg.append( (float)event.getPos().y / getWindowHeight() ); mSender.send( msg ); }
void SimpleMultiThreadedSenderApp::mouseMove( cinder::app::MouseEvent event ) { mCurrentMousePositon = event.getPos(); osc::Message msg( "/mousemove/1" ); msg.append( mCurrentMousePositon.x ); msg.append( mCurrentMousePositon.y ); mSender.send( msg ); }
void ArmyDemoApp::mouseDown( MouseEvent event ) { mCamUi.mouseDown( event.getPos() ); osc::Message msg( "/mouseclick/1" ); msg.append( (float)event.getPos().x / getWindowWidth() ); msg.append( (float)event.getPos().y / getWindowHeight() ); mSender.send( msg ); }
void ArmyDemoApp::mouseMove( MouseEvent event ) { mMouseHorizontalPos = float( event.getX() ); mCurrentMousePositon = event.getPos(); osc::Message msg( "/mousemove/1" ); msg.append( mCurrentMousePositon.x ); msg.append( mCurrentMousePositon.y ); mSender.send( msg ); }