Can i fake the Input.GetKey to an GUI.RepeatButton by setting the Input of the Key to true when pushing the Button?
I tried the following, but it doesn’t work. Is there any possibility?
if( GUI.RepeatButton( new Rect( 30, 30, 50, 50 ), "right" ) )
{
Input.GetKey(KeyCode.RightArrow) = true;
Debug.Log(Input.GetKey(KeyCode.RightArrow);
}