⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example3dappui.cpp

📁 JAVA3D游戏
💻 CPP
字号:
    /*
    *
============================================================================
    *  Name     : CExample3DAppUi.cpp
    *  Part of  : Example3D
    *  Created  : 12/14/2003 by Forum Nokia
    *  Description:
    *     This is the project specification file for Example3D.
    *     Initial content was generated by Series 60 AppWizard.
    *
    *  Version  : 1.0.0
    *  Copyright: Forum Nokia
    *
============================================================================
    */

// INCLUDES
#include "Example3DAppUi.h"
#include "Example3DContainer.h" 
#include <Example3D.rsg>
#include "example3d.hrh"
#include <avkon.hrh>

// MEMBER FUNCTIONS

void CExample3DAppUi::ConstructL()
    {
    BaseConstructL();
    iAppContainer = new (ELeave) CExample3DContainer;
    iAppContainer->SetMopParent(this);
    iAppContainer->ConstructL( ClientRect() );

	// series60 blocks simultaneous key presses by default
	// this game uses throttle and steering keys at the same time
	// and this line makes it possible
 	SetKeyBlockMode( ENoKeyBlock );

	AddToStackL( iAppContainer );
    }


CExample3DAppUi::~CExample3DAppUi()
    {
    if (iAppContainer)
        {
        RemoveFromStack( iAppContainer );
        delete iAppContainer;
        }
   }


void CExample3DAppUi::HandleCommandL(TInt aCommand)
    {
    switch ( aCommand )
        {
        case EAknSoftkeyBack:
        case EEikCmdExit:
            {
            Exit();
            break;
            }
        // TODO: Add Your command handling code here

        default:
            break;      
        }
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -