Controller button held down
Posted: Sun Feb 10, 2013 11:48 am
Hi.. I'm a pretty new programmer and I'm new to sega genesis and game programming in general. I'm using sgdk
I want to know, how can you detect if a button is held down and constantly do something while it is held down. for instance moving a character right while the right button is held down?
I looked into the sgdk joypad handling source code and it says it updates controller state at each vblank period and only fires an event whenever a state change is detected.
I want to know, how can you detect if a button is held down and constantly do something while it is held down. for instance moving a character right while the right button is held down?
I looked into the sgdk joypad handling source code and it says it updates controller state at each vblank period and only fires an event whenever a state change is detected.