Hi everybody,
I'm working on a user interface base on emWin functionalities and everything is working in the right way. Now, I'm looking to optimize touch, but while debugging I've faced a strange behaviour to me.
I've Window Manager enabled, a simple window with 4 buttons and a custom callback assigned to this window and I would like to better understand the "flow of messages", such as WM_TOUCH and WM_TOUCH_CHILD.
Putting one breakpoint on the WM_TOUCH_CHILD case and on on the WM_NOTIFICATION_CLICKED, when I touch a button I get the program stopping at WM_TOUCH_CHILD and then in WM_NOTIFICATION_CLICKED, as expected. The strange thing is the "Pressed" value of the GUI_PID_STATE field to which "p" pointer of the message points to, is always 0.
This should not have sense, because a WM_NOTIFICATION_CLICKED is triggered by a pressure, or am I missing something?
Also, the other strange thing is X coordinates is out of the displayed range: I've got a 320x240 pixels display, and often X value reaches 500 and more. Why this?
Thanks
I'm working on a user interface base on emWin functionalities and everything is working in the right way. Now, I'm looking to optimize touch, but while debugging I've faced a strange behaviour to me.
I've Window Manager enabled, a simple window with 4 buttons and a custom callback assigned to this window and I would like to better understand the "flow of messages", such as WM_TOUCH and WM_TOUCH_CHILD.
Putting one breakpoint on the WM_TOUCH_CHILD case and on on the WM_NOTIFICATION_CLICKED, when I touch a button I get the program stopping at WM_TOUCH_CHILD and then in WM_NOTIFICATION_CLICKED, as expected. The strange thing is the "Pressed" value of the GUI_PID_STATE field to which "p" pointer of the message points to, is always 0.
This should not have sense, because a WM_NOTIFICATION_CLICKED is triggered by a pressure, or am I missing something?
Also, the other strange thing is X coordinates is out of the displayed range: I've got a 320x240 pixels display, and often X value reaches 500 and more. Why this?
Thanks