0

I would like to detect user tapping on the device's back, NOT screen Since users cannot touch the screen wearing VR headset. It would be great if I can use JS for this, neither android studio or swift IOS is fine too. Kindly, share your ideas. This is one of the ideas: http://mylifewithandroid.blogspot.kr/2013/06/tap-detection-supported-by-gyroscope.html

Thanks

mudin
  • 2,672
  • 2
  • 17
  • 45
  • you means device back of hardware surface ? – james Oct 20 '16 at 08:51
  • you mean like just a general tap, or like know where the user is tapping on the back? the former you might be able to detect via the accelerometer, but i would think it would give too many false positives to be of any real use – Fonix Oct 20 '16 at 08:54
  • 2
    You should process data from accelerometer. Take a look at [this](http://stackoverflow.com/a/10877432/6950238) answer. – Andrii Omelchenko Oct 20 '16 at 08:55
  • Yeah it is like link(http://www.knocktounlock.com). when users put thier phone into the VR cardbord or glass they cannot touch or tap screen. Yes guys I need to use gyroscope or accelerometer – mudin Oct 20 '16 at 10:00
  • @AndriyOmelchenko Yes exactly. So I am expecting someone who processed the data (maybe using pattern things which i dont know well) – mudin Oct 20 '16 at 10:06

1 Answers1

0

If there are no sensors for that, so it is not directly possible. Some devices have fingerprint sensors on the back, but those are small and not directly accessible from the code.

You could try calculating this using the gyrometer, but it would not be too accurate I fear.

Kelevandos
  • 7,024
  • 2
  • 29
  • 46