Inputting cheat codes - hidden keyboard input

Posted by Fibericon on Game Development See other posts from Game Development or by Fibericon
Published on 2012-08-27T07:04:57Z Indexed on 2012/08/27 21:57 UTC
Read the original article Hit count: 231

Filed under:
|
|

Okay, here's what I want to do - when the player is at the main menu, I want them to be able to type in cheat codes. That's the only place I want it to work. I don't want to give them a text box to type into. Rather, I want them to simply type in a word (let's say "cheat", just for simplicity sake) that activates the cheat code. I only need to capture keyboard input when the window is in focus. What can I do to accomplish this?

© Game Development or respective owner

Related posts about XNA

Related posts about c#