I'm trying to rewrite my button handling code to be a bit slicker (and not so horribly hacky).
Anyone got some code to share that will handle;
detecting if a button has been held for longer than X frames
detecting if a button has been tapped and released
detecting double-tap
all in a nice, small, efficient package?
Anyone got some code to share that will handle;
detecting if a button has been held for longer than X frames
detecting if a button has been tapped and released
detecting double-tap
all in a nice, small, efficient package?