jag

tetoris_c

public

Small block game in C

Star0
Watch0
b7c05d8620b059a69bf69dec38a8c71d5d8d608c
1
ssh://git@git.jaglekon.de:30/jag/tetoris_c.git
source/parser.hC21 lines370 B
1
#ifndef PARSER_H
2
#define PARSER_H
3
4
#include <string.h>
5
#include <ctype.h>
6
#include <stdint.h>
7
8
#define BUF_LEN 4096
9
#define ARROW_LEN 3 
10
11
typedef enum {
12
  NO_KEY, PAUSE, QUIT, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, INCOMPLETE, UNKNOWN
13
} keypress;
14
15
int add_to_buf(uint8_t *input, uint16_t input_length);
16
17
keypress parse_input();
18
19
void break_unfinished();
20
21
#endif