home · contact · privacy
b1c7112ebb1924f00af2ff1964acbd2693b4c85f
[plomrogue] / src / client / control.h
1 /* src/client/control.h
2  *
3  * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
4  * or any later version. For details on its copyright, license, and warranties,
5  * see the file NOTICE in the root directory of the PlomRogue source package.
6  *
7  * Routines for handling control input from the keyboard.
8  */
9
10 #ifndef CONTROL_H
11 #define CONTROL_H
12
13 #include <stdint.h> /* uint8_t, uint16_t */
14
15
16
17 /* Try to match "key" to the Command DB and execute appropriate actions if
18  * successful. Return 0 on failure, 2 for calling a "quit" comand (to be
19  * handled externally) and 1 for calling any other command.
20  */
21 extern uint8_t try_key(uint16_t key);
22
23
24
25 #endif