Original Post
I'm having some trouble setting up custom input keys. I am able to assign the keys on startup however am not able to detect them during gameplay. Here is what I am currently doing: However this is not doing anything with the variable keys. My only other thought on this is to check the state of every key and then see if that key is assigned to one of my keys, but I'm sure that there has to be a better way than that of doing this?
KeyboardState state = deviceKeyboard.GetCurrentKeyboardState();
//What I am currently doing:
if (state[Key.Up])
{
//Do something...
}
//What I want to do:
if ((state[Key.Up]) || (state[strKeyUp]))
{
//Do something...
}