//*********************************************************************** BOOL CLGBApp::GotoScene( HWND hWndPreviousScene, int iScene, int iNextScene ) //*********************************************************************** { HTOON hToon = NULL; if ( !iScene ) return( NO ); // reset the key map for every scene ResetKeyMap(); // close down the current scene if ( hWndPreviousScene ) SendMessage( hWndPreviousScene, WM_CLOSE, 0, 0L ); // if next scene not specified, set next scene if (!iNextScene) iNextScene = iScene + 1; // create the new scene m_lpScene = CreateScene(iScene, iNextScene); if (!m_lpScene) return(FALSE); // if this is the main menu, disable reading mode if (iScene == IDD_MAINMENU) m_fReading = FALSE; // save last scene# and set new scene# m_nLastSceneNo = m_nSceneNo; m_nSceneNo = iScene; // set bookmark if in valid range if (iScene >= GetFirstSceneNo() && iScene <= GetFinalSceneNo()) { m_nBookmark = iScene; m_bNewBookmark = YES; } if (!m_lpScene->Create(YES, GetInstance(), GetMainWnd(), iScene)) return(FALSE); return( TRUE ); }
EXPORT_C void CSDL::ResetSDLCodes() { ResetKeyMap(); }
void InitOSKeymap(_THIS) { ResetKeyMap(); EpocSdlEnv::ObserverEvent(MSDLObserver::EEventKeyMapInit ,0); }