X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fclient%2Fcontrol.h;h=b1c7112ebb1924f00af2ff1964acbd2693b4c85f;hb=dd74c7f63defe31b7783f1ce2b2a96deba6d9690;hp=71aa30a8c032e0776cb3af277665405c65331ca7;hpb=dd9d65ee727ac7e95801da0f8b5bae7009811802;p=plomrogue
diff --git a/src/client/control.h b/src/client/control.h
index 71aa30a..b1c7112 100644
--- a/src/client/control.h
+++ b/src/client/control.h
@@ -1,4 +1,8 @@
/* src/client/control.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Routines for handling control input from the keyboard.
*/
@@ -10,23 +14,11 @@
-/* Try to call by "key" player actions triggering messages to the server. Return
- * 1 on success, 0 on failure.
- */
-extern uint8_t player_control(int key);
-
-/* Try to call by "key" actions for active window's keybindings/geometry config
- * view. Return 1 on success, 0 on failure.
- */
-extern uint8_t wingeom_control(int key);
-extern uint8_t winkeyb_control(int key);
-
-/* Try to call by "key" basic window and game management actions that do not
- * send a message to the server and do not change individual windows'
- * keybindings or geometries. Returns 0 on failure, 2 for calling a "quit"
- * action (to be handled externally) and 1 for calling any other action.
+/* Try to match "key" to the Command DB and execute appropriate actions if
+ * successful. Return 0 on failure, 2 for calling a "quit" comand (to be
+ * handled externally) and 1 for calling any other command.
*/
-extern uint8_t meta_control(int key);
+extern uint8_t try_key(uint16_t key);