Basically, I have a key binding section of my options menu. When you click the edit button next to one of the binding it brings up a window that checks for any key press. It works great for letters and alpha nums. However, it does not work for the F keys, or the numpad. is there any reason for this?
My Function:
private KeyCode FetchKey()
{
int e = System.Enum.GetNames(typeof(KeyCode)).Length;
for(int i = 0; i < e; i++)
{
if(Input.GetKey((KeyCode)i))
{
return (KeyCode)i;
}
}
return KeyCode.None;
}
Thanks
Tom