massive cleaning of file section headers
[physics.git] / src / main.cpp
index 0f186bd..6f5ed03 100644 (file)
 #include "graphics/graphics.h"
 #include "input/inputManager.h"
 
-
-
 /// ***** Private Method Headers *****
+
 void init();
 
 void sighandler( int sig );
 
 void run();
-void cleanUp();
+void clean();
 
 void blockUpdate();
 void updateFPSCounters();
@@ -28,17 +27,6 @@ void input();
 void update(float);
 void draw();
 
-
-/// ***** MAIN Method *****
-int main()
-{
-    init();
-    run();
-    cleanUp();
-    return 0;
-}
-
-
 /// ***** Private Variables *****
 
 // variable used to determine if it is time to shutdown
@@ -64,7 +52,17 @@ int update_Count, draw_Count;
 long int last_Second;
 
 
-/// ***** Private Methods *****
+/// ***** MAIN Method *****
+int main()
+{
+    init();
+    run();
+    clean();
+    return 0;
+}
+
+/// ***** Initializers/Cleaners *****
+
 void init()
 {
     installSignal();
@@ -73,22 +71,28 @@ void init()
 
     gameInit();
 
+    inputInit();
+
 #ifdef DEBUGGING
     cout << "Initialization Complete" << endl;
 #endif
 }
 
-void cleanUp()
+void clean()
 {
 #ifdef DEBUGGING
     cout << "Cleaning up" << endl;
 #endif
 
+    inputClean();
+
     gameClean();
 
-    graphicsCleanUp();
+    graphicsClean();
 }
 
+/// ***** Private Methods *****
+
 void run()
 {
     is_Running = true;