X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fcontrol.h;h=492b80b1688f8ad176dd57adc7397cac11d86661;hb=e75b508724effaad1bfd6dcf337c34a368855095;hp=492ac88e3811831661774e9efb612b6951e29d1a;hpb=4b5302fe73b9aa08819ff740bbf8286352a990fb;p=plomrogue diff --git a/src/control.h b/src/control.h index 492ac88..492b80b 100644 --- a/src/control.h +++ b/src/control.h @@ -13,27 +13,18 @@ /* Return keycode to action of "name" if available in current window config. */ extern uint16_t get_available_keycode_to_action(char * name); - - /* Control the player character, either via action id "action" or pressed "key". * Return 1 on success, 0 if no appropriate action to trigger was found. */ -extern uint8_t player_control_by_id(int action); extern uint8_t player_control_by_key(int key); +extern uint8_t player_control_by_id(int action); - - -/* Control via "key" active window's geometry / keybindings in respective config - * view. - */ +/* Control via "key" active window's config view's geometry / keybindings. */ extern uint8_t wingeom_control(int key); extern uint8_t winkeyb_control(int key); - - -/* Call by "key" further game / window management actions that don't influence - * the player character. If the "quit" action is called, return 1 (instead of - * exiting directly). +/* Call via "key" further game/window management actions not influencing the + * player character. If "quit" is called, return 1, else 0. */ extern uint8_t meta_control(int key);