Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Filtering Ph_EV_BUT_REPEAT from pt_CB_REPEAT: (1 Item)
   
Filtering Ph_EV_BUT_REPEAT from pt_CB_REPEAT  
Hi, I'm modifying a photon App to run on a TouchScreen so I'm modifying all the pt_CB_MENU callbacks for pt_CB_REPEAT.

The problem is that if I keep my finger on an element the callback is called a lot of times.

I'm filtering this right now comparing widget and position but there has to be a better way to do it.

I've tried:
pevent = (PhPointerEvent_t) PhGetData(cbinfo->event)
pevent->click_count; But this always is set to 1.

Also, QNX Doc offers "pevent->z" which is said that "can be used with touchscreens to indicate touch pressure".
But I don't have any touch screen to test it and I don't know if this could help.

Has anyone done anything similar?