home · contact · privacy
Also read window title from config/windows/ files. To facilitate that, also corrected...
[plomrogue] / src / control.h
index 599f04b3cc6f3316f295bb6a3144c77aa25858ce..79e5976e7b5010019df474c994ac4fa25dea2e91 100644 (file)
@@ -1,4 +1,6 @@
 /* control.h
+ *
+ * Routines for handling control input from keyboard or record file.
  */
 
 #ifndef CONTROL_H
@@ -6,16 +8,23 @@
 
 
 
-#include <stdint.h>    /* for uint8_t */
-#include "yx_uint16.h" /* for yx_uint16 coordinates */
+#include <stdint.h> /* for uint8_t */
 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);