Flip camera x rotation controls

This commit is contained in:
Abdelrahman Said 2024-07-07 23:30:46 +01:00
parent 26fc513d4a
commit df1620319c

View File

@ -157,9 +157,9 @@ int main(void) {
break;
case SDL_KEYDOWN:
if (event.key.keysym.sym == SDLK_w) {
camera.rotation.x += 1.0f;
} else if (event.key.keysym.sym == SDLK_s) {
camera.rotation.x -= 1.0f;
} else if (event.key.keysym.sym == SDLK_s) {
camera.rotation.x += 1.0f;
} else if (event.key.keysym.sym == SDLK_d) {
camera.rotation.y += 1.0f;
} else if (event.key.keysym.sym == SDLK_a) {