Skip to content

Commit d3b41de

Browse files
committed
small fixes in the doc
1 parent 29133d5 commit d3b41de

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Specs.pod

+6-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The application domain handles general flow for major states such as
1919

2020
The idea is that no actual game logic should be represented in the
2121
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.
2323

2424
All SDL events (except "major state change") are routed to the
2525
currently active controller.
@@ -176,9 +176,10 @@ controller.
176176

177177
There is no strong type checking in the application, so the only
178178
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).
183184

184185
=cut

0 commit comments

Comments
 (0)