I'm writing an XNA application which requires input directed to only one input event handler, which is the object that is currently locked, i.e. game, menu, console, etc.
What is the best way to do this? I've thought about creating an IInputReceiver
interface (with methods such as HandleInput
) that attaches into a central input manager which only sends input events to the locked input receiver.
Just wondering about what other people do with input handling.