gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > gba input how does it work?

#177005 - blessingta@hotmail.co.uk - Sun Nov 20, 2011 6:53 pm

Does the gba input only list that one key that has been pressed or released per frame?

#177006 - Dwedit - Sun Nov 20, 2011 7:01 pm

It tells you if the button or joypad direction is currently pressed at the instant you poll it.
If you need to detect state changes (not pressed -> pressed), compare the new status with the old status.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."