Oh, I see.
I haven't used the virtual joystick buttons, just the regular virtual buttons. See the help here
http://www.appgamekit.com/documentation/Reference/Input/GetButtonPressed.htm
for the joystick buttons. Do you have a keyboard attached? Since I DO have a keyboard attached, GetButtonPressed() gets called by the spacebar for button 1, etc.
For example, this code:
do
Print(GetButtonState(1))
Print(GetButtonPressed(1))
Sync()
loop
shows that button number 1 is triggered by my spacebar.
I'm not near my iPad, so I can't test it with no joystick and no keyboard. Are you testing on a phone/tablet?
Are you using AddVirtualButton()? It works fine for me.