Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: jimmer on February 02, 2013, 11:18:59 am

Title: Button press software (speed fire)
Post by: jimmer on February 02, 2013, 11:18:59 am

Anyone got test software for buttons that includes a measure of how fast you are pressing the button?

I probably have the ability to write something myself, which I will do if no-one comes up with anything, but I'd rather be building my panel.

I want to test different types of button for fast fire, and have a reading of how fast I'm pressing the button. Ideally the program will start on the first press and then when you stop it will list your speed. Print a new line for each batch of presses
eg

12 presses              452ms
08 presses              412ms
13 presses              580ms
...



 

Title: Re: Button press software (speed fire)
Post by: jimmer on February 02, 2013, 12:52:52 pm
OK, so this is my attempt.
Tested in Chrome

hopefully you can access this
http://www.codeskulptor.org/#user8-S7RcwY5zDF-7.py (http://www.codeskulptor.org/#user8-S7RcwY5zDF-7.py)

Not entirely sure the timer is accurate !! but will do for comparisons

oh yeah, it times from the release of the first press to the release of the last press, so for 11 presses it divedes the time by 10.  A 1 second gap causes end of test.