Mercurial > projects > mde
comparison mde/input/joystick.d @ 89:97e6dce08037
Solved some/removed some obsolete jobs/FIXMEs (excluding from gui code). General cleanup.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 29 Sep 2008 18:27:17 +0100 |
parents | 79d816b3e2d2 |
children | 2a364c7d82c9 |
comparison
equal
deleted
inserted
replaced
88:01f4f5f1acc9 | 89:97e6dce08037 |
---|---|
51 } | 51 } |
52 | 52 |
53 /// Cleanup fct. | 53 /// Cleanup fct. |
54 StageState closeJoysticks () { | 54 StageState closeJoysticks () { |
55 foreach (js; joysticks) { | 55 foreach (js; joysticks) { |
56 // FIXME: This sometimes causes a SIGSEGV (Address boundary error) when init fails. | 56 // NOTE: This sometimes causes a SIGSEGV (Address boundary error) when init fails. |
57 if(js !is null) SDL_JoystickClose(js); // only close if successfully opened | 57 if(js !is null) SDL_JoystickClose(js); // only close if successfully opened |
58 } | 58 } |
59 return StageState.INACTIVE; | 59 return StageState.INACTIVE; |
60 } | 60 } |