static void window_appear(Window *window)
{
	
  
	sendCommandInt(SM_SCREEN_ENTER_KEY, STATUS_SCREEN_APP);
	
}
Beispiel #2
0
static void down_single_click_handler(ClickRecognizerRef recognizer, void *context) {
	if (active_layer == MUSIC_LAYER) {
		sendCommand(SM_VOLUME_DOWN_KEY);
	}
	else {
		reset();
		sendCommandInt(SM_SCREEN_ENTER_KEY, STATUS_SCREEN_APP);
	}
}
Beispiel #3
0
static void window_disappear(Window *window)
{
	sendCommandInt(SM_SCREEN_EXIT_KEY, STATUS_SCREEN_APP);
	
/*
	app_timer_cancel_event(g_app_context, timerUpdateCalendar);
	app_timer_cancel_event(g_app_context, timerUpdateMusic);
	app_timer_cancel_event(g_app_context, timerUpdateWeather);
*/	
}
static void up_click_handler(ClickRecognizerRef recognizer, void *context) {
	if (active_layer == MUSIC_LAYER) {
		text_layer_set_text(text_date_layer, "Volume up" );
		sendCommand(SM_VOLUME_UP_KEY);		
	}
	else {
		text_layer_set_text(text_weather_cond_layer, "Updating..." ); 	
		sendCommandInt(SM_SCREEN_ENTER_KEY, STATUS_SCREEN_APP);
	}
}
Beispiel #5
0
void reconnect(void *data) {
	reset();

	sendCommandInt(SM_SCREEN_ENTER_KEY, STATUS_SCREEN_APP);
	
}
static void window_disappear(Window *window)
{
	sendCommandInt(SM_SCREEN_EXIT_KEY, STATUS_SCREEN_APP);
	
}
Beispiel #7
0
static void select_multi_click_handler(ClickRecognizerRef recognizer, void *context) {
	text_layer_set_text(text_weather_cond_layer, "Updating..." ); 	
	
	sendCommandInt(SM_SCREEN_ENTER_KEY, STATUS_SCREEN_APP);
}