Albert Andreu(deleted)
|
Filtering Ph_EV_BUT_REPEAT from pt_CB_REPEAT
|
Albert Andreu(deleted)
02/12/2010 5:01 AM
post47196
|
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?
|
|
|