Hi, I’m developing an input manager, and for some reason, when I want to detect the control key, it detects always the same key, eitherway if it is the right one or the left one.
here’s what i have On the Update function…
} else if(Input.GetKeyDown(KeyCode.LeftShift)){
lookingForKey = false;
return KeyCode.LeftShift;
} else if(Input.GetKeyDown(KeyCode.RightControl)){
lookingForKey = false;
return KeyCode.RightControl;
} else if(Input.GetKeyDown(KeyCode.LeftControl)){
lookingForKey = false;
return KeyCode.LeftControl;
}
for some reason when i press left control, it says me that i pressed right Control, and if i press right Control, it says the same…
any ideas?
thanks!