InputManager and Input task are mentioned in the article. It suggests me that
there is one global handler for all inputs.
This is quite surprising to me, because for almost all cases I'd attach a Controller
to each entity, what would be a superclass to an input handler, an AI or whatever.
- Is this bad practice? Shinjin 12:56, 4 Mar 2005 (PST)
- We use an InputManager too and Controllers register at the InputManager instance when they want to be informed about certain kind of input. The manager is there to have a certain degree of control. E.g when a GUI window is open that wants text input the w,a,s,d keys shouldn't move the player. So having an InputManager doesn't mean you can't have controllers too. A decentralised handling of the input focus would be very error prone imho. tanis 17:01, 4 Mar 2005 (PST)