android-multitouch-controller icon indicating copy to clipboard operation
android-multitouch-controller copied to clipboard

Initializing multiTouchController

Open sapeg opened this issue 3 years ago • 2 comments

Hi. By analogy with this: private MultiTouchController<PinchWidgetType> multiTouchController = new MultiTouchController<PinchWidgetType>(this); , I'm trying to declare a variable in the activity:

View view = findViewById(R.id.view);
multiTouchController = new MultiTouchController<View>(view);

But I get the error : incompatible types: The view cannot be converted to MultiTouchObjectCanvas<View>. What am I doing wrong?

sapeg avatar Oct 19 '22 13:10 sapeg

I'm really sorry, I have not touched this code in many years, and my Android knowledge is extremely out of date. If you're able to fix it, please submit a pull request. Thanks!

lukehutch avatar Oct 20 '22 20:10 lukehutch

Ok. I had some thoughts, but I decided to try a different code. Thanks.

sapeg avatar Oct 21 '22 09:10 sapeg