more keys

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@267 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-10-11 11:39:41 +00:00
commit 927f9577ca
7 changed files with 38 additions and 1 deletions

View file

@ -228,3 +228,17 @@ static void init(void) {
glEnable(GL_NORMALIZE);
}
static void key(int k) {
(void)k;
if(k == MwLLKeyLeft) {
view_roty += 5.0;
} else if(k == MwLLKeyRight) {
view_roty -= 5.0;
} else if(k == MwLLKeyUp) {
view_rotx += 5.0;
} else if(k == MwLLKeyDown) {
view_rotx -= 5.0;
}
}