about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-22 15:56:19 -0400
committerJune McEnroe <june@causal.agency>2019-03-22 15:56:19 -0400
commit69963861d798d188807fffad020aa3626bd8ea60 (patch)
treeafeef04fe3fd2e7a5d4566a458c7f3453a224228
parentAdd F2 and b temporary key (diff)
downloadcards-69963861d798d188807fffad020aa3626bd8ea60.tar.gz
cards-69963861d798d188807fffad020aa3626bd8ea60.zip
Add d key
-rw-r--r--sol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sol.c b/sol.c
index cde7b2b..5c4df78 100644
--- a/sol.c
+++ b/sol.c
@@ -317,6 +317,11 @@ static bool keyDown(SDL_KeyboardEvent key) {
 			layout.backTexture += Cards_Back1;
 			return true;
 		}
+		case SDLK_d: {
+			game.draw = (game.draw == 1 ? 3 : 1);
+			gameDeal();
+			return true;
+		}
 		default: return false;
 	}
 }