test even some stuff - still quite wip

This commit is contained in:
2025-05-27 21:52:47 +02:00
parent 78620af37a
commit f6e59e74c7
3 changed files with 117 additions and 39 deletions

7
main.c
View File

@@ -156,7 +156,14 @@ int processEvent(SDL_Event e) {
int keyMod = e.key.keysym.mod;
cursor = true;
switch (keySym) {
case SDLK_q:
laneTarget = laneTarget == 1 ? 0 : 1;
break;
case SDLK_p:
speed = speed == 0 ? 0.004f : 0;
break;
default:
break;
}
} else if (e.type == SDL_MOUSEBUTTONDOWN) {