The InputReceiver property is a property which can be assigned on the InputManager to identify that a particular object (which must implement the IInputReceiver interface) should receive keyboard input. This property can be used to prevent multiple objects from receiving keyboard input. This is useful if multiple game objects respond to keyboard input - such as a a text box and a character in a platformer.
The InputReceiver can be assigned through custom code. For example, the following might be an event executed when an Entity in Glue is clicked:
For information on how to prevent input, see the IInputReceiver page.
The InputManager is a class responsible for reading and reporting input from the keyboard, mouse, and gamepads. It is automatically initiated and updated by FlatRedBallServices so once the Initialization methods are called, the InputManager can be used.
See Keyboard
See Mouse
See TouchScreen
See Xbox360GamePad
Did this article leave any questions unanswered? Post any question in our forums for a rapid response.