VTK Multi Touch Support

Hi fellow devs,

I am trying to implement touch support for my existing vtk environment with the help of VTK: vtkInteractorStyleMultiTouchCamera Class Reference. I am on version 9.3 of VTK. So far all it does is rotate the 3D object. My application is running WPF in xaml and I am using an OpenGLForm that is being hosted in WinFormsHost i.e. WinForms for the vtk rendering. My entire app is touch based and I am trying to add some kind of visual feature that needs me to render some 3d models. All it does is rotate the 3d model. I have a wrapper class that extends from vtkInteractorStyleMultiTouchCamera and I’ve tried overriding all the methods to debug via breakpoints. However, every touch was hitting leftbuttondown and mousemove method which suggested that touch is not being recognized correctly. That prompted me to try the VTKSandbox where I connected my sample and tried running it there, but it did not work there as well. Any support on this would be appreciated.

Edit: I was able to get it to work by overriding the VTK: vtkWin32RenderWindowInteractor Class Reference and hijacking the touch events. But now I have to process my own movements on touch which is not as smooth as the source. Is there a way to get them to work together or have the multi touch class work on its own.