Old man needs help - Touch & Button events

My test application is using GHIElectronics.TinyCLR.UI.0.12.0
Hardware is a UCM Dev Board Rev E, GHI UC5550, and a UD700 Rev A

My app is based on GHI example found at:
https: //docs.ghielectronics.com/software/tinyclr/tutorials/graphics.html

I have to admit that I have no idea on how to use the app.InputProvider events
or what is needed to enable/use touch on the UD700.

Is there any example code available on the proper usage of:

//Use the below two functions to pass input to the UI system
//app.InputProvider.RaiseTouch(x, y, touchState, DateTime.UtcNow);
//app.InputProvider.RaiseButton(btn, btnState, DateTime.UtcNow);

Thank You!

1 Like

There’s no touch driver itself built in at the moment. You have to create the driver yourself and when you receive touch events from your driver, you pass the data (x, y, up/down, timestamp) into the UI library via RaiseTouch and RaiseButton.

For the UD700, it’s the ER-TFT070-4 display with the ER-TPC070-6 touch panel which has the FT5316 driver chip. It has a similar API to the Display NHVN, so you can adapt that driver.

Of course we plan to have touch drivers for these display soon. But this should get you going for now.

Thank You.

I will continue playing and see what happens.

Are there touch drivers in the preview 3 software? If not, when is the anticipated plan?

Thanks!

They are not in preview3. We expect them to be available in the release after 1.0.0.

1 Like