Mercurial > projects > mde
comparison mde/input/joystick.d @ 95:2a364c7d82c9
Boolean options can be adjusted from the gui now (using a very basic widget). Also some bug-fixes.
Fixed a minor bug where layouts with the same id but without shared alignments would be messed up.
Tracked down the "nothing trawn until a resize" bug (see jobs.txt).
If widgets throw during creation they're now replaced by debug widgets.
Function pointers are converted to delegates using a safer method.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 06 Nov 2008 11:07:18 +0000 |
parents | 97e6dce08037 |
children |
comparison
equal
deleted
inserted
replaced
94:9520cc0448e5 | 95:2a364c7d82c9 |
---|---|
52 | 52 |
53 /// Cleanup fct. | 53 /// Cleanup fct. |
54 StageState closeJoysticks () { | 54 StageState closeJoysticks () { |
55 foreach (js; joysticks) { | 55 foreach (js; joysticks) { |
56 // NOTE: 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 debug logger.trace ("Calling SDL_JoystickClose"); | |
57 if(js !is null) SDL_JoystickClose(js); // only close if successfully opened | 58 if(js !is null) SDL_JoystickClose(js); // only close if successfully opened |
58 } | 59 } |
59 return StageState.INACTIVE; | 60 return StageState.INACTIVE; |
60 } | 61 } |