From e600f2e2703108152bac81fcebca1dfc92488295 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 2 Dec 2017 12:23:01 +0300 Subject: Add PUT_LATENCY threshold and some fixes --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 731aa86..a4a8863 100644 --- a/src/main.c +++ b/src/main.c @@ -14,6 +14,7 @@ uint8_t arrKeys = 0b00000000; // Arrow keys states byte container /* --- Variables End --- */ sfClock *gameTick; +sfClock *putTick; sfClock *mTick; sfClock *repPushDown; // Clock for repeat latency when Down arrow long push sfClock *repKeyLeft; // Clock for repeat latency when Left arrow long push @@ -22,6 +23,7 @@ sfClock *repKeyRight; // Clock for repeat latency when Left arrow long push void prepare() { srand( time(NULL) ); gameTick = sfClock_create(); + putTick = sfClock_create(); mTick = sfClock_create(); fontScore = sfFont_createFromFile("dat/arial.ttf"); if (!fontScore) { -- cgit v1.2.3