Glide with your own Touch Driver

Is anyone else using Glide with their own touch driver?

Everything is working fine with my own TSC2046 driver I created except for the MessageboxManager because it has it’s own thread doing touch and whilst this is running, my thread in the background is no longer running to process touch input.

Looks like I may need to modify the touch thread in MessageboxManager to get this to work but it would be nice if there was a simpler solution?

Dave - I know this is an old thread, but I’m wondering if you ever got this working?

I am using the CapacitiveTouchController class that I found on this website for use with the Display NHVN and a Hewhaven 4.3" LCD with capacitive touch. The problem is that MessageboxManager is polling


and my touch controller is routing the touch events to Glide.  I thought that I could fix this by instead routing the touch coordinates to Microsoft.SPOT.Touch.TouchCollectorConfiguration by using the 

```cs]TouchCollectorConfiguration.SetTouchInput(TouchCollectorConfiguration.TouchInput.LastTouchPoint, capacitive_args.X, capacitive_args.Y, 0);[/code

in the CapacitiveTouchController, but I am getting "An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Touch.dll"

Hi DarrenUtd,

I just don’t use the messagebox anymore. I will however look at this if I get time over the next few days as it would be good to have this working.

@ DarrenUtd -
I just got the same setup ( Display NHVN and a Hewhaven 4.3" LCD with capacitive touch) I cannot get it work at all

What pin should be be passed to the CapacitiveTouchController constructor?

  
            CapacitiveTouchController touch = new CapacitiveTouchController(???);
            touch.ScreenPressed += Touch_ScreenPressed;
            touch.ScreenReleased += Touch_ScreenReleased;

It’s not actually documented so you need to go through the schematics to trace it. For the Cobra 3 this is on P0_6 but this is shared with COM2 RTS so make sure you don’t use COM2 with flow control.