Main Site Documentation

Touch Problem



I use the program GHIGraphicalDemo.
Inside I added a class, but I can use a touch in it.

Do you have any solutions?



The demo includes full source code, you can follow the example to see how to get touch events in your app.


Pyxis2 source code is a good reference as well.


Doesn’t pyxis poll the touchscreen on a separate thread instead of using events?

What is the best practice?



Pyxis works in 2 methods based on what’s happening.

Normal Mode: Event driven.

Modal Operations: Polling.

The reason for this is during modal operations the event thread blocks.


thanks, I have resolve my problem