示例#1
0
/**
 * Back button single click handler
 */
static void back_single_click_handler(ClickRecognizerRef recognizer, void *context) {
  // Stop accidental closure of Morpheuz by defining this
  // Bring clock up to date if a button is pressed
  // Only if we're recording or running powernap
  if (is_monitoring_sleep()) {
    manual_shutdown_request();
    revive_clock_on_movement(CLOCK_UPDATE_THRESHOLD);
  } else {
    close_morpheuz();  
  }
}
示例#2
0
/*
 * Quit and stop recording
 */
static void stop_and_quit() {
  get_internal_data()->stopped = true;
  close_morpheuz();
}