コード例 #1
0
ファイル: SDLActivity.java プロジェクト: fcjailybo/asgp
  @Override
  public void onWindowFocusChanged(boolean hasFocus) {
    super.onWindowFocusChanged(hasFocus);
    Log.v("SDL", "onWindowFocusChanged(): " + hasFocus);

    SDLActivity.mHasFocus = hasFocus;
    if (hasFocus) {
      SDLActivity.handleResume();
    }
  }
コード例 #2
0
  @Override
  public void onWindowFocusChanged(boolean hasFocus) {
    // TODO: Implement this method
    super.onWindowFocusChanged(hasFocus);

    if (waitForNext) {
      this.nextLevel();
      waitForNext = false;
    }

    ((GameBoard) findViewById(R.id.gameBoard)).setGame(this.game);
    findViewById(R.id.gameBoard).invalidate();
    ((GameBoard) findViewById(R.id.gameBoard)).getHowdyShadeView().invalidate();
  }
コード例 #3
0
ファイル: SDLActivity.java プロジェクト: mactec0/flare-engine
  @Override
  public void onWindowFocusChanged(boolean hasFocus) {
    super.onWindowFocusChanged(hasFocus);
    Log.v("SDL", "onWindowFocusChanged(): " + hasFocus);

    if (SDLActivity.mBrokenLibraries) {
      return;
    }

    SDLActivity.mHasFocus = hasFocus;
    if (hasFocus) {
      SDLActivity.handleResume();
    }
  }