Beispiel #1
0
int keypress_update_root_handler (window_info *win, int mx, int my, Uint32 key, Uint32 unikey)
{
	Uint16 keysym = key & 0xffff;

	// first, try to see if we pressed Alt+x, to quit.
	if ( check_quit_or_fullscreen (key) )
	{
		return 1;
	}
	else if (keysym == SDLK_RETURN)
	{
		exit_now = 1;
		return 1;
	}
	else if (keysym == SDLK_ESCAPE)
	{
		update_countdown = -1;
		hide_window(update_root_win);
		show_window(window_to_show);
		LOG_TO_CONSOLE(c_red2, "You need to restart the client to activate the updates!");
		return 1;
	}
	
	return 1;
}
Beispiel #2
0
int keypress_update_root_handler (window_info *win, int mx, int my, Uint32 key, Uint32 unikey, Uint16 mods)
{
	// first, try to see if we pressed Alt+x, to quit.
	if ( check_quit_or_fullscreen (key, mods) )
	{
		return 1;
	}
	else if (key == SDLK_RETURN)
	{
		exit_now = 1;
		return 1;
	}
	
	return 1;
}