added helper menu
This commit is contained in:
@ -104,8 +104,7 @@ void PlayingState::handleEvent(const SDL_Event& e) {
|
||||
// Tetris controls (only when not paused)
|
||||
if (!ctx.game->isPaused()) {
|
||||
// Rotation (still event-based for precise timing)
|
||||
if (e.key.scancode == SDL_SCANCODE_UP || e.key.scancode == SDL_SCANCODE_W ||
|
||||
e.key.scancode == SDL_SCANCODE_Z) {
|
||||
if (e.key.scancode == SDL_SCANCODE_UP) {
|
||||
ctx.game->rotate(1); // Clockwise rotation
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user