Improved support for keyboard/mouse events in osgcluster.

This commit is contained in:
Robert Osfield
2005-08-29 14:05:30 +00:00
parent 2e84f10b21
commit 9f740f7397
3 changed files with 13 additions and 20 deletions

View File

@@ -134,21 +134,14 @@ 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
}