3 * Routines for handling control input from keyboard or record file.
9 #include <stdint.h> /* for uint8_t */
13 /* Return keycode to action of "name" if available in current window config. */
14 extern uint16_t get_available_keycode_to_action(char * name);
16 /* Control the player character, either via action id "action" or pressed "key".
17 * Return 1 on success, 0 if no appropriate action to trigger was found.
19 extern uint8_t player_control_by_key(int key);
20 extern uint8_t player_control_by_id(int action);
22 /* Control via "key" active window's geometry / keybindings in respective config
25 extern uint8_t wingeom_control(int key);
26 extern uint8_t winkeyb_control(int key);
28 /* Call by "key" further game / window management actions that don't influence
29 * the player character. If the "quit" action is called, return 1 (instead of
32 extern uint8_t meta_control(int key);