Home » Developing U++ » U++ Developers corner » Touchscreen on raspberry: problem with events
Re: Touchscreen on raspberry: problem with events [message #48632 is a reply to message #48630] |
Thu, 10 August 2017 12:38 |
Giorgio
Messages: 218 Registered: August 2015
|
Experienced Member |
|
|
Hi there,
I was wrong in my previous post. It seems like the logging has some "buffering" system, so events are not printed on console as soon as they happen, but only when the "buffer" is full. Taking that in mind (and waiting for the buffer to be full), I found out that if I makes a single tap, what is logged is something like:
" GDK_BUTTON_PRESSGDK_PROPERTY_NOTIFYGDK_EXPOSEGDK_EXPOSEGDK_P ROPERTY_NOTIFYGDK_MOTION_NOTIFYGDK_BUTTON_RELEASE "
That makes sense, because the couple GDK_BUTTON_PRESS + GDK_BUTTON_RELEASE (and five events between them) is the same that is logged when I tap on a button, and when - for a button - I define a WhenPush callback the button works.
Now let's see what happens when I click the Switch control with the mouse (in this case the switch control works as expected):
GDK_BUTTON_PRESSGDK_PROPERTY_NOTIFYGDK_EXPOSEGDK_BUTTON_RELE ASE
We have the same couple GDK_BUTTON_PRESS + GDK_BUTTON_RELEASE, but between them there are just two other events (GDK_PROPERTY_NOTIFY and GDK_EXPOSE) while with a single tap here are 5 events between them (GDK_PROPERTY_NOTIFY, GDK_EXPOSE, GDK_EXPOSE, GDK_PROPERTY_NOTIFY, GDK_MOTION_NOTIFY).
I think that the problem is that, but I have no idea how to fix it
Any suggestion from more experienced user is appreciated.
Thanks,
Gio
|
|
|
|
|
Touchscreen on raspberry: problem with events
By: Giorgio on Wed, 09 August 2017 16:16
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Klugier on Wed, 09 August 2017 18:10
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Thu, 10 August 2017 10:54
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Thu, 10 August 2017 12:38
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Klugier on Thu, 10 August 2017 14:17
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Thu, 10 August 2017 16:22
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Klugier on Thu, 10 August 2017 16:55
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Thu, 10 August 2017 17:13
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Sun, 10 September 2017 16:31
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Tue, 26 September 2017 15:23
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Wed, 27 September 2017 11:42
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Wed, 21 February 2018 11:54
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Thu, 22 February 2018 07:45
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Thu, 22 February 2018 07:47
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Thu, 22 February 2018 18:56
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Thu, 22 February 2018 19:00
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Fri, 23 February 2018 19:33
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Mon, 26 February 2018 14:55
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Mon, 26 February 2018 16:20
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Tue, 27 February 2018 09:15
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Fri, 09 March 2018 18:34
|
|
|
Re: Touchscreen on raspberry: problem with events
By: mirek on Fri, 09 March 2018 19:27
|
|
|
Re: Touchscreen on raspberry: problem with events
By: Giorgio on Mon, 12 March 2018 09:42
|
|
|
Re: Touchscreen on raspberry: problem with events
By: rafiwui on Thu, 10 August 2017 16:57
|
Goto Forum:
Current Time: Wed Apr 24 12:10:29 CEST 2024
Total time taken to generate the page: 0.03043 seconds
|