Home » Developing U++ » U++ Developers corner » Touchscreen on raspberry: problem with events
Re: Touchscreen on raspberry: problem with events [message #48633 is a reply to message #48632] |
Thu, 10 August 2017 14:17   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
For the next time - please write the events separate. Current version is hard to read, because you need to think when event starts and ends.
I do not think the event inside meters so much, we have the correct event order (GDK_BUTTON_PRESS and GDK_BUTTON_RELEASE) when user touch. All we need to know is they are handle correctly. You need to check Switch control code to make sure they are propagate correctly. You could also log the all switch events that happens for example:
void Switch::MouseMove(Point p, dword keyflags) {
Cout() << "Switch::MouseMove(): ";
...
}
// Add log for the rest of events and try to understand the logic...
void Switch::LeftDown(Point p, dword keyflags) { ... }
void Switch::LeftUp(Point p, dword keyflags) { ... }
void Switch::MouseLeave() { ... }
In my opinion " pushindex = -1;" when mouse leave the area could be a problem. This is the highly probably, because tap can move mouse somewhere else and leave the switch area. Please check this clue - you will need to play with Switch event handling a little bit.
For logging you just simply use Cout() and launch your app in terminal. Just like this:
Cout() << "My message!" << "\n";
You could use upp more advenced logging mechanism, however I think Cout() should be sufficient for our needs.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Thu, 10 August 2017 14:19] Report message to a moderator
|
|
|
 |
|
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: Tue Jun 17 10:46:28 CEST 2025
Total time taken to generate the page: 0.05464 seconds
|