3 * Routines for handling control input from keyboard or record file.
11 #include <stdint.h> /* for uint8_t */
16 /* Return keycode to action of "name" if available in current window config. */
17 extern uint16_t get_available_keycode_to_action(struct World * world,
22 /* Control the player character, either via recorded "action" or pressed "key".
24 extern void record_control(int action, struct World * world);
25 extern uint8_t player_control(int key, struct World * world);
29 /* Control via "key" active window's geometry / keybindings in respective config
32 extern uint8_t wingeom_control(int key, struct World * world);
33 extern uint8_t winkeyb_control(int key, struct World * world);
37 /* Call by "key" further game / window management actions that don't influence
38 * the player character. If the "quit" action is called, return 1 (instead of
41 extern uint8_t meta_control(int key, struct World * world);