diff mde/setup/InitStage.d @ 132:264028f4115a

Cleaned up mde.imde and a couple of widget functions. New mde.menus module to add default menus. The input singleton is now created in mde.input.Input instead of mde.imde.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 23 Jan 2009 14:59:05 +0000
parents 1655693702fc
children
line wrap: on
line diff
--- a/mde/setup/InitStage.d	Wed Jan 21 13:01:40 2009 +0000
+++ b/mde/setup/InitStage.d	Fri Jan 23 14:59:05 2009 +0000
@@ -13,9 +13,9 @@
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
-/**************************************************************************************************
+/******************************************************************************
  * The infrastructure for handling external startup/shutdown code.
- *************************************************************************************************/
+ *****************************************************************************/
 module mde.setup.InitStage;
 
 public import mde.setup.exception;
@@ -81,9 +81,9 @@
 
 
 
-/**************************************************************************************************
+/******************************************************************************
  * Initialization functions.
- *************************************************************************************************/
+ *****************************************************************************/
 import imde = mde.imde;
 import mde.input.Input;
 import mde.setup.Screen;
@@ -99,12 +99,12 @@
 }
 
 StageState initInput () {
-    imde.input.loadConfig ("input");
+    Input.singleton.loadConfig ("input");
     
-    // Quit on escape. NOTE: quit via SDL_QUIT event is handled completely independently!
-    imde.input.addButtonCallback (cast(Input.inputID) 0x0u, delegate void(Input.inputID i, bool b) {
+    // Quit on escape.
+    Input.singleton.addButtonCallback (cast(Input.inputID) 0x0u, delegate void(Input.inputID i, bool b) {
         if (b) {
-            logger.info ("Quiting...");
+            debug logger.trace ("Quit (from Esc)");
             imde.run = false;
         }
     } );