android-multitouch-controller
android-multitouch-controller copied to clipboard
Initializing multiTouchController
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?
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!
Ok. I had some thoughts, but I decided to try a different code. Thanks.