XNA Controls Settings
问题 I have a huge problem with editing controls for my game.. I have an ingame button and when you click it. The "Choose your key.." text appears, but I don't know how to actually set it up.. I have made a "waiting for input" bool.. THIS IS NOT THE REAL CODE IT'S HOW I IMAGINE IT TO BE if (buttonIsClicked) waitinForInput = true; while(waitingForInput) { kbState = Keyboard.GetState(); somehow convert it to Keys.(STH); if (Keys.STH != defaultKeys) { defaultKeys = Keys.STH; waitingForInput = false;