Found a copy of basic rewired script. It works but I have a small question about it.It seems the like the following method is called every update and for each input button AC uses.
I assume that is because AC is checking to see if a button was pressed and of course if nothing is going on it checks for every button each update.
I was thinking AC would listen for a button down event and then handle, but it seems it checks all the buttons each update.
Is that correct?
private bool CustomGetButtonDown(string buttonName)
{
// Debug.Log(buttonName);
return player.GetButtonDown(buttonName);
}
Comments