home · contact · privacy
Some cleaning up and comments added to outsourcing misc library stuff into control...
authorChristian Heller <c.heller@plomlompom.de>
Wed, 28 Aug 2013 01:27:26 +0000 (03:27 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 28 Aug 2013 01:27:26 +0000 (03:27 +0200)
src/control.h
src/misc.c

index 599f04b3cc6f3316f295bb6a3144c77aa25858ce..bd5dd0ce36a8b94743cc872fd7aefe69cfa2eca8 100644 (file)
@@ -1,4 +1,6 @@
 /* control.h
+ *
+ * Routines for handling user's key press input.
  */
 
 #ifndef CONTROL_H
@@ -6,8 +8,7 @@
 
 
 
-#include <stdint.h>    /* for uint8_t */
-#include "yx_uint16.h" /* for yx_uint16 coordinates */
+#include <stdint.h> /* for uint8_t */
 struct World;
 
 
index 1fbcc3ecdce4a318e911e75928c1322e29d19c8f..b826436d7165245c8f422f8ddedad606fb034fa2 100644 (file)
@@ -7,16 +7,12 @@
 #include <string.h> /* for strlen(), strcmp(), memcpy() */
 #include <stdint.h> /* for uint8_t */
 #include "windows.h" /* for suspend_win(), append_win(), reset_pad_offset(),
-                      * resize_active_win(), cycle_active_win(),
-                      * shift_active_win(), struct Win, struct WinMeta
+                      * resize_active_win(), struct Win, struct WinMeta
                       */
-#include "keybindings.h" /* for get_action_key(), save_keybindings(),
-                          * keyswin_move_selection(), keyswin_mod_key()
-                          */
 #include "readwrite.h" /* for [read/write]_uint[8/16/32][_bigendian]() */
 #include "map_objects.h" /* for struct Monster, write_map_objects(), */
 #include "map_object_actions.h" /* for is_passable(), move_monster() */
-#include "map.h" /* for map_scroll(),map_center_player(), Map struct,dir enum */
+#include "map.h" /* for Map struct */
 #include "main.h" /* for World struct */
 #include "yx_uint16.h" /* for yx_uint16 */
 #include "rrand.h" /* for rrand(), rrand_seed() */