Hello... I'm trying to get a combination of keys pressed or buttons held down.
The right thing is that I want to make a Ctrl+Z function in my proyect, so if I press the key Control, hold down it and then press the Z key, I want that my last action to be eliminated.
I have something like this, but it doesn't work at all...
Event e = Event.current;
if (e.control)
{
print("control!");
if (Input.GetKeyDown("Z"))
{
print("Deshacer!");
}
if (Input.GetKeyDown("Y"))
{
print("Rehacer!");
}
}