-2

The title is pretty much self explanatory, i want when the user taps rapidly on the screen to accurately as possible count the current 'taps per second' any ideas?

thanks

Broak
  • 4,161
  • 4
  • 31
  • 54
  • I was more so hoping for a method to counting the taps, without using some sort of counter, i've tried researching for some info on this but seem to not be able to find ANYONE else talking about it – Broak Nov 14 '12 at 17:00
  • Why don't you want to use a counter? – Ryan Nov 14 '12 at 17:02

1 Answers1

0

Here's the solution I think its possible to do:

  1. Set a Timer
  2. Invoke View's onTouch (to do this, you may need to create a custom view), self increase 1 for each touch
  3. Do calculation
dumbfingers
  • 7,001
  • 5
  • 54
  • 80
  • Certainly good enough for me, though wouldnt this only be able to show the taps per second when the user has 'finished' the game, rather than a live count – Broak Nov 14 '12 at 17:20
  • @xBroak the `onTouch` event is fired at real time (it will get fired at the same time user touches the screen), so literally it can show the live count. – dumbfingers Nov 14 '12 at 18:18