home · contact · privacy
6cc251a724136dab72ded78e7507968978741913
[plomrogue] / src / client / control.h
1 /* src/client/control.h
2  *
3  * Routines for handling control input from the keyboard.
4  */
5
6 #ifndef CONTROL_H
7 #define CONTROL_H
8
9 #include <stdint.h> /* uint8_t, uint16_t */
10
11
12
13 /* Try to match "key" to the Command DB and execute appropriate actions if
14  * successful. Return 0 on failure, 2 for calling a "quit" comand (to be
15  * handled externally) and 1 for calling any other command.
16  */
17 extern uint8_t try_key(uint16_t key);
18
19
20
21 #endif