comparison mde/setup/init2.d @ 68:3a737e06dc50

Unittests: fixes and changes. Plus some doc changes.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 04 Jul 2008 18:49:16 +0100
parents 66d555da083e
children 25cb7420dc91
comparison
equal deleted inserted replaced
67:108d123238c0 68:3a737e06dc50
69 } 69 }
70 private const GUI = "gui"; 70 private const GUI = "gui";
71 71
72 void initInput () { // init func 72 void initInput () { // init func
73 try { 73 try {
74 imde.input.loadConfig (); // (may also create instance) 74 imde.input.loadConfig ("input");
75 75
76 // Quit on escape. NOTE: quit via SDL_QUIT event is handled completely independently! 76 // Quit on escape. NOTE: quit via SDL_QUIT event is handled completely independently!
77 imde.input.addButtonCallback (cast(Input.inputID) 0x0u, delegate void(Input.inputID i, bool b) { 77 imde.input.addButtonCallback (cast(Input.inputID) 0x0u, delegate void(Input.inputID i, bool b) {
78 if (b) { 78 if (b) {
79 logger.info ("Quiting..."); 79 logger.info ("Quiting...");