Mercurial > projects > mde
comparison mde/input/input.d @ 2:78eb491bd642
mergetag: partially redesigned dataset and text reader classes. Changed text format.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 03 Nov 2007 15:15:43 +0000 |
parents | d547009c104c |
children | 9a990644948c |
comparison
equal
deleted
inserted
replaced
1:18491334a525 | 2:78eb491bd642 |
---|---|
1 /** This module contains the interface to the input system; it should be the only module of the | 1 /** This module contains the interface to the input system; it should be the only module of the |
2 * input package imported from outside this package. | 2 * input package imported from outside this package. |
3 */ | 3 */ |
4 module mde.input.input; | 4 module mde.input.input; |
5 /+import derelict.sdl.events; | 5 |
6 // package imports | |
6 import mde.input.core; | 7 import mde.input.core; |
7 import mde.input.config; | 8 import mde.input.config; |
8 import mde.input.eventstream; | 9 import mde.input.eventstream; |
10 | |
11 // sdl imports | |
12 import derelict.sdl.events; | |
9 | 13 |
10 /// Get key status at this ID | 14 /// Get key status at this ID |
11 bool button (uint id) { | 15 bool button (uint id) { |
12 return b_tbl[cast(index_t) id]; | 16 return b_tbl[cast(index_t) id]; |
13 } | 17 } |
53 | 57 |
54 /** Feed an SDL_Event struct (only uses if it's a key, mouse or joystick event). | 58 /** Feed an SDL_Event struct (only uses if it's a key, mouse or joystick event). |
55 * Other types of event functions may be added. | 59 * Other types of event functions may be added. |
56 */ | 60 */ |
57 void SDLEvent (SDL_Event event); | 61 void SDLEvent (SDL_Event event); |
58 +/ |