summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2017-12-02 12:23:01 +0300
committerOxore <oxore@protonmail.com>2017-12-02 12:23:01 +0300
commite600f2e2703108152bac81fcebca1dfc92488295 (patch)
tree570c09537e3abec6a8a5198c5035d62cd55cc127 /src/main.c
parent194112490cf58dc5fe9c0ca0488d4964faa9f2a3 (diff)
Add PUT_LATENCY threshold and some fixes
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
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) {