Added extra access methods on osgProducer::KeyboardMouseCallback, and added

support for reading and writing keyboard/mouse events in osgcluster.
This commit is contained in:
Robert Osfield
2005-08-29 12:05:17 +00:00
parent b316dc30e8
commit ffb06a8c49
5 changed files with 200 additions and 21 deletions

View File

@@ -17,6 +17,8 @@
#include "receiver.h"
#include <iostream>
Receiver::Receiver( void )
{
_port = 0;
@@ -132,14 +134,21 @@ void Receiver::sync( void )
}
}
#else
std::cout<<"A"<<std::endl;
recvfrom( _so, (caddr_t)_buffer, _buffer_size, 0, 0, &size );
std::cout<<" B"<<std::endl;
while( select( _so+1, &fdset, 0L, 0L, &tv ) )
{
std::cout<<" C"<<std::endl;
if( FD_ISSET( _so, &fdset ) )
{
std::cout<<" D"<<std::endl;
recvfrom( _so, (caddr_t)_buffer, _buffer_size, 0, 0, &size );
}
}
std::cout<<" E"<<std::endl;
#endif
}