multiple GUI.Buttons at the same time

hi there,
i wanted to do a fast GUI.Button menu and use it as input for android devices…

so i have RepeatButtons w,a,s,d
and public static booleans:
Wispressed, Aispressed and so on

if (GUI.RepeatButton(new Rect(x1-50, y1, 50, 50), “A”))
{a=true;}
else a=false;

my problem is, that i can’t press many buttons at the same time. if i am pressing “D” do walk forward and than press “W” to jump while walking (its a 2d platformer) the jump is not beeing done…

some ideas?
thanks for help!

Here’s what I could whip up, turn your current GUI Buttons into GUITextures then do the following in OnGUI:

    // Set these to the proper rect you have defined in your code.
    Rect wRect = new Rect( 0, 0, 50, 50 );
    Rect aRect = new Rect( 0, 0, 50, 50 );
    Rect sRect = new Rect( 0, 0, 50, 50 );
    Rect dRect = new Rect( 0, 0, 50, 50 );
    
    bool wPress = false;
    bool aPress = false;
    bool sPress = false;
    bool dPress = false;
    foreach ( Touch t in Input.touches )
    {
    	if ( wRect.Contains( t.position ) )
    		wPress = true;
    	else
    		wPress = false;
    	
    	if ( aRect.Contains( t.position ) )
    		aPress = true;
    	else
    		aPress = false;
    	
    	if ( sRect.Contains( t.position ) )
    		sPress = true;
    	else
    		sPress = false;
    	
    	if ( dRect.Contains( t.position ) )
    		dPress = true;
    	else
    		dPress = false;
    }