Have a counter, set it to zero. If the space bar is pressed and the counter is zero start a timer and increment the counter. If the counter was one, and the timer is less than some value, then you've had two presses on the space bar, so reset the count back to zero.
↧