Changes between Version 2 and Version 3 of code/doc/InputState
- Timestamp:
- Sep 15, 2008, 11:14:58 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/InputState
v2 v3 4 4 == Overview == 5 5 What is it anyway? Any InputState can be associated with a certain state or mode in the game. This can be as simple as the in-game console or as complicated as a whole level. It doesn't actually matter, it's up to the programmer to decide. From this article's point of view, the important question is "What next?". Whenever input reaches an InputState, it is automatically sent to all registered [wiki:InputHandler InputHandlers]. There is no active/inactive, only registered or not. [[br]] 6 In most cases, there is only one InputHandler registered in an InputState. For instance, the console only needs an OutputBuffer to accumulate text. For this reason InputState is only an abstract class. There are two derivates: SimpleInputStates and ExtendedInputStates, both explained below.6 In most cases, there is only one InputHandler registered in an InputState. For instance, the console only needs an InputBuffer to accumulate text. For this reason InputState is only an abstract class. There are two derivates: SimpleInputStates and ExtendedInputStates, both explained below. 7 7 8 8 == Creating and Destruction ==