コード例 #1
0
ファイル: move.c プロジェクト: eml-trm/Wolf3D
int		check_key_press(int keycode, t_mlx *mlx)
{
	mlx->key = keycode;
	if (mlx->menu == 1)
	{
		if (mlx->key == 126)
			press_up(mlx);
		if (mlx->key == 125)
			press_down(mlx);
		if (mlx->key == 124)
			press_right(mlx);
		if (mlx->key == 123)
			press_left(mlx);
		if (mlx->key >= 123 && mlx->key <= 126)
			mlx->move = 1;
	}
	return (0);
}
コード例 #2
0
ファイル: app_message.c プロジェクト: bradparks/PebbleFlix
void down_click_handler(ClickRecognizerRef recognizer, void *context)
{
    press_down();
}