added different height speed change for up and down

This commit is contained in:
asus
2024-01-13 15:58:16 +01:00
parent cebfe75798
commit 1553685882
8 changed files with 10 additions and 6 deletions

View File

@@ -28,10 +28,9 @@ void keypress_more(int keycode, t_fdf *fdf)
fdf->zoom = 0;
}
else if (keycode == O)
fdf->altitude++;
fdf->altitude += Z_HEIGHT_UP;
else if (keycode == P)
//if (fdf->altitude > 0)
fdf->altitude--;
fdf->altitude -= Z_HEIGHT_DOWN;
}
int should_ignore_keypress(const struct timeval *current_time, t_fdf *fdf)