1 /* src/client/control.h
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.
7 * Routines for handling control input from the keyboard.
13 #include <stdint.h> /* uint8_t, uint16_t */
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.
21 extern uint8_t try_key(uint16_t key);