Home » Developing U++ » U++ Developers corner » Touchscreen on raspberry: problem with events
Re: Touchscreen on raspberry: problem with events [message #49545 is a reply to message #49543] |
Mon, 26 February 2018 16:20 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Giorgio wrote on Mon, 26 February 2018 14:55Hi Mirek,
this is the log with LOG() of a single tap (using the latest stable version of upp):
MouseMove
p = [155, 136]
keyflags & K_MOUSELEFT = 8388608
MouseMove
p = [155, 136]
keyflags & K_MOUSELEFT = 0
MouseMove
p = [155, 136]
keyflags & K_MOUSELEFT = 0
LeftDown
p = [155, 136]
keyflags & K_MOUSELEFT = 0
LeftUp
p = [155, 136]
keyflags & K_MOUSELEFT = 0
MouseMove
That does not make sense at all...
Would it be possible to do test, with logs in GtkEvent.cpp:
#include <CtrlCore/CtrlCore.h>
#ifdef GUI_GTK
namespace Upp {
#define LLOG(x) // DLOG(rmsecs() << ' ' << x)
#define LOG_EVENTS
void Ctrl::AddEvent(gpointer user_data, int type, const Value& value, GdkEvent *event)
{
if(Events.GetCount() > 50000)
return;
GEvent& e = Events.AddTail();
e.windowid = (uint32)(uintptr_t)user_data;
e.type = type;
e.value = value;
gint x, y;
GdkModifierType mod;
gdk_window_get_pointer(gdk_get_default_root_window(), &x, &y, &mod);
e.mousepos = Point(x, y);
e.state = mod;
e.count = 1;
e.event = NULL;
if(event) {
e.time = gdk_event_get_time(event);
e.event = gdk_event_copy(event);
}
else {
e.time = gtk_get_current_event_time();
e.event = gtk_get_current_event();
}
DUMPHEX(mod);
}
Mirek
|
|
|
|
|
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 17 22:30:24 CEST 2024
Total time taken to generate the page: 0.01488 seconds
|