public static final int QuitConfirm_Update(int keycode) {
    int idx = -1;
    int retV = MOREGAME_NULL;
    for (int i = KeyValue.length - 1; i >= 0; i--) {
      if (KeyValue[i] == keycode) {
        idx = i;
        break;
      }
    }
    if (idx < 0) return MOREGAME_NULL;

    switch (idx) {
      case L:
        // MoreGame_DoOpen(midlet);
        retV = MOREGAME_CANCEL;
        GameMIDlet.GetInstance().notifyDestroyed();
        break;
      case R:
        retV = MOREGAME_NULL;
        break;
    }
    if (retV != MOREGAME_NULL) {
      FreeAllImage();
      // #if ENABLE_TOUCH=="TRUE"
      cTouch.ClearBtns();
      // #endif
    }
    return retV;
  }
  /** 返回 true表示,本状态结束 */
  public static final boolean SoundOnOff_Update(int keycode) {

    //// #if SOUNDONOFF=="TRUE"
    int idx = -1;
    boolean retV = false;
    // #if SCREENWIDTH<176 || MODEL=="D508" || MODEL=="KG90n" || MODLE=="D608"|| MODEL=="E398" ||
    // MODEL=="L7"
    // #else
    if (!HasSound) {
      return SoundOnOffisFinished;
    }
    for (int i = KeyValue.length - 1; i >= 0; i--) {
      if (KeyValue[i] == keycode) {
        idx = i;
        break;
      }
    }
    if (idx < 0) return false;

    switch (idx) {
      case L:
        SoundOn = -1;

        GameMIDlet.SetSoundOnOff(true);

        retV = true;
        break;
      case R:
        SoundOn = 0;
        GameMIDlet.SetSoundOnOff(false);
        retV = true;
        break;
    }
    if (retV) {
      FreeAllImage();
      // #if ENABLE_TOUCH=="TRUE"
      cTouch.ClearBtns();
      // cTouch.TargetCanvas = null;
      // #endif
    }
    // #endif
    return retV;
    //// #else
    //		return true;
    //// #endif
  }
 public static final boolean MoreGame_Paint(Graphics g) {
   if (GameMIDlet.GetInstance() != null) {
     GameMIDlet.GetInstance().notifyDestroyed();
     return true;
   }
   // #if MOREGAME=="TRUE" && MODEL!="D608" && MODEL!="D508"
   Image last = cCP.GetImage(IDX_LAST);
   if (Info == null) {
     // #if SCREENWIDTH>=176
     Info = new String[] {"更多精彩游戏", "尽在游戏频道", "Wap.xjoys.com", "确定", "退出"};
     // #else
     Info = new String[] {"更多精彩游戏", "尽在游戏频道", "Wap.xjoys.com", "确定", "退出"};
     // #endif
   }
   if (last != null) {
     g.drawImage(last, SCR_W >> 1, SCR_H >> 1, Graphics.VCENTER | Graphics.HCENTER);
   }
   if (Info != null) {
     g.setFont(MyFont);
     g.setColor(0xFFFFFF);
     /** 去掉 确定 退出 所占的2 */
     int ContextHeight = MyFont.getHeight() * ((Info.length - 2));
     int Y = (SCR_H - MyFont.getHeight() - ContextHeight) >> 1;
     int i = 0, loop_end = Info.length - 2;
     while (i < loop_end) {
       g.drawString(
           Info[i], SCR_W >> 1, Y + (i * MyFont.getHeight()), Graphics.HCENTER | Graphics.TOP);
       i++;
     }
     /** 左右软键,可以用宏,处理那些对调的机型,-3 为让基线下的文字显示出来 */
     g.drawString(Info[Info.length - 2], 0, SCR_H - 3, Graphics.LEFT | Graphics.BOTTOM);
     g.drawString(Info[Info.length - 1], SCR_W, SCR_H - 3, Graphics.RIGHT | Graphics.BOTTOM);
   }
   return false;
   // #else
   return true;
   // #endif
 }
  public static final boolean SoundOnOff_paint_small(Graphics g) {
    cCPdrawCleanScreen(g, 0);
    Image Img_firstLogo = GetImage(IDX_FIRSTLOGO);
    Image Img_CNM = GetImage(IDX_CNM);
    g.drawImage(
        Img_firstLogo,
        DevConfig.SCR_W >> 1,
        Img_firstLogo.getHeight() >> 1,
        Graphics.HCENTER | Graphics.VCENTER);
    g.drawImage(
        Img_CNM, cCP.SCR_W >> 1, Img_firstLogo.getHeight(), Graphics.HCENTER | Graphics.TOP);
    //		TotalTime += GLLib.s_Tick_Paint_FrameDT;

    if (TotalTime++ > 20) {
      GameMIDlet.SetSoundOnOff(false);
      return true;
    } else {
      return false;
    }
  }