@@ -19,7 +19,7 @@ The application domain handles general flow for major states such as
19
19
20
20
The idea is that no actual game logic should be represented in the
21
21
Application domain, so the only events handled here are the "major
22
- state change", which are reserved to the SDL_USEREVENT32 type.
22
+ state change", which are reserved to the SDL_NUMEVENTS - 1 type.
23
23
24
24
All SDL events (except "major state change") are routed to the
25
25
currently active controller.
@@ -176,9 +176,10 @@ controller.
176
176
177
177
There is no strong type checking in the application, so the only
178
178
requirement made by the application is that the controller support
179
- "new", "activate" and "deactivate". When the game transits to a new
180
- state it will call "new" on the controller of the target state, call
181
- "deactivate" in the controller being decomissioned and "activate" in
182
- the new controller object.
179
+ "new", "activate", "handle_event" and "deactivate". When the game
180
+ transits to a new state it will call "new" on the controller of the
181
+ target state, call "deactivate" in the controller being decomissioned
182
+ and "activate" in the new controller object, it will also call
183
+ "handle_event" for all SDL events (except major state changes).
183
184
184
185
=cut
0 commit comments