|
Games for Windows Live provides a set of functions for Windows that are nearly identical to the lobby functions for the 360. In fact, with a few minor changes enabled by the GFWL define, RakNet uses the same code on both platforms.
Everything is identical to xbox360lobby.html, with the following changes:
- Call XLiveInitialize before Client_Login
- Add this code:
// Use PeekMessage() so we can use idle time to render the scene.
if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) != 0 ) {
if( FALSE == XLivePreTranslateMessage( &msg ) ) {
// continue processing the message as XLivePreTranslateMessage
// did not consume it.
TranslateMessage( &msg );
DispatchMessage( &msg );
}
}
- Call XLiveUnInitialize after shutdown
- Define GFWL in your preprocessor settings
|