コード例 #1
0
//***********************************************************************
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 );
}
コード例 #2
0
ファイル: SDL_main.cpp プロジェクト: a-team/wormux
EXPORT_C void CSDL::ResetSDLCodes()
	{
	ResetKeyMap();
	}
コード例 #3
0
ファイル: SDL_epocevents.cpp プロジェクト: yeKcim/warmux
void InitOSKeymap(_THIS)
	{
	ResetKeyMap();
	EpocSdlEnv::ObserverEvent(MSDLObserver::EEventKeyMapInit ,0);
	}