Mercurial > projects > mde
diff mde/events.d @ 21:a60cbb7359dd
Window settings now come from options, and may use OpenGL (enabled/disabled at compile time).
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 24 Mar 2008 17:53:28 +0000 |
parents | 838577503598 |
children | 249eb6620685 |
line wrap: on
line diff
--- a/mde/events.d Sat Mar 22 16:22:59 2008 +0000 +++ b/mde/events.d Mon Mar 24 17:53:28 2008 +0000 @@ -36,14 +36,18 @@ } void initInput () { // init2 func + logger.trace ("init2: initInput() started"); + try { global.input = new Input(); global.input.loadConfig (); // (may also create instance) Scheduler.perFrame (&pollEvents); } catch (Exception e) { - init2.setFailure (); // must clean up properly + setInitFailure (); // must clean up properly } + + logger.trace ("init2: initInput() finished"); } void pollEvents (double) {