Small snake game in C
| 1 | #ifndef READ_INPUT_H |
| 2 | #define READ_INPUT_H |
| 3 | |
| 4 | #include <stdio.h> |
| 5 | #include <stdlib.h> |
| 6 | #include <poll.h> |
| 7 | #include <unistd.h> |
| 8 | |
| 9 | #include <jag_parse.h> |
| 10 | |
| 11 | |
| 12 | #define ARR_LEN 2 |
| 13 | |
| 14 | |
| 15 | uint8_t read_input(keypress **input, size_t *input_len, bool *lock, bool is_broken, uint64_t delay); |
| 16 | |
| 17 | void free_input(keypress *input); |
| 18 | |
| 19 | |
| 20 | #endif |