Last active
August 29, 2015 13:57
-
-
Save dEn13L/9721520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.haxe.nme; | |
import android.app.Activity; | |
import org.haxe.nme.HaxeListener | |
public class GameActivity extends Activity implements SensorEventListener, HaxeListener { | |
protected void onCreate(Bundle state) { | |
super.onCreate(state); | |
mView = new MainView(getApplication(), this); | |
setContentView(mView); | |
} | |
/** | |
* Обработчик нажатия кнопки меню | |
* / | |
@Override | |
public void onGamePause() { | |
// Тут мы знаем что нажато меню | |
// И ,например, показываем видео | |
} | |
/** | |
* Обработчик нажатия крестика Haxe | |
* / | |
@Override | |
public void onGameExit() { | |
// Тут мы знаем что нажат крестик выхода | |
// И ,например, показываем видео | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment