We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Ok, so I'm making an Android application, which needs to detect number of fingers currently pressed, so it can use that number as different "buttons".
How would I go about doing that?
P.s: I don't want to use any prebuild libraries, because I want to learn how to do it "Vanilla" way.
Thanks!
Answers
@MGlolenstine===
that is easy:
you import the android motionEvent class && in your onTouchEvent(event) method you ask for that:
int nbrefingers = event.getPointerCount();
more details here: https://developer.android.com/reference/android/view/MotionEvent.html
Thanks