From d324ad963c24edf6d19dffc305a38e0b3607b5c1 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 21 May 2022 22:24:01 +0200 Subject: Add piece rotation --- src/command.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index efe2987..24b50cd 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -40,3 +40,7 @@ KeyboardRightPressed::~KeyboardRightPressed(){} void KeyboardRightPressed::execute( GameState &game ){ game.pressRight(); } +KeyboardSpacePressed::~KeyboardSpacePressed(){} +void KeyboardSpacePressed::execute( GameState &game ){ + game.pressRotate(); +} -- cgit v1.2.3