X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fcontrol.h;h=79e5976e7b5010019df474c994ac4fa25dea2e91;hb=21f71b2e4a9f406110d9add9ae52eec34729519f;hp=bd5dd0ce36a8b94743cc872fd7aefe69cfa2eca8;hpb=7b26f28c6d6028b5aad2ba93a5c8911f6118e6e9;p=plomrogue
diff --git a/src/control.h b/src/control.h
index bd5dd0c..79e5976 100644
--- a/src/control.h
+++ b/src/control.h
@@ -1,6 +1,6 @@
/* control.h
*
- * Routines for handling user's key press input.
+ * Routines for handling control input from keyboard or record file.
*/
#ifndef CONTROL_H
@@ -13,10 +13,18 @@ struct World;
-/* Call some meta game / window management actions dependent on key. If the
- * "quit" action is called, return 1 only instead of doing anything directly.
+/* Control the player character, either via recorded "action" or pressed "key".
*/
-extern uint8_t meta_keys(int key, struct World * world);
+extern void record_control(int action, struct World * world);
+extern uint8_t player_control(int key, struct World * world);
+
+
+
+/* Call by "key" game / window management actions that don't influence the
+ * player character. If the "quit" action is called, return 1 (instead of
+ * exiting directly).
+ */
+extern uint8_t meta_control(int key, struct World * world);