ibutton-scene-select-key.cpp 532 B

1234567891011121314151617181920
  1. #include "ibutton-scene-select-key.h"
  2. #include "../ibutton-app.h"
  3. #include "../ibutton-event.h"
  4. #include "../ibutton-key.h"
  5. void iButtonSceneSelectKey::on_enter(iButtonApp* app) {
  6. // Process file_select return
  7. if(app->load_key()) {
  8. app->switch_to_next_scene(iButtonApp::Scene::SceneSavedKeyMenu);
  9. } else {
  10. app->switch_to_previous_scene();
  11. }
  12. }
  13. bool iButtonSceneSelectKey::on_event(iButtonApp* app, iButtonEvent* event) {
  14. return false;
  15. }
  16. void iButtonSceneSelectKey::on_exit(iButtonApp* app) {
  17. }