Re: Using touchscreen with headless system



Ah!

That would be the same problem someone already pointed out.
There is no code to translate touch events codes from the evdev event format to Clutter's format.
It should be pretty straight forward to implement, but we kind of need someone (with the hardware to test it) to write that piece of code.

The piece of code you want to modify is around here :

https://git.gnome.org/browse/clutter/tree/clutter/evdev/clutter-device-manager-evdev.c?h=clutter-1.18#n550

Here is the kernel documentation to deal with input events :

https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt

I might have a look at it this weekend, but not sure.

Cheers,

-
Lionel

On 03/01/14 16:06, Elias Bakken wrote:
Lionel, I have tried connecting "event" to the stage and also "gesture-begin" as a test without any luck. Based on your message now I also discovered "touch-event", which seemed promising, and also the "captured-event" but I was unable to get any output from that either..

I'm using Clutter 1.16 and I am on a headless system, not X nor Wayland, directly on the framebuffer. (BeagleBone Black)




On Fri, Jan 3, 2014 at 4:46 PM, Lionel Landwerlin <llandwerlin gmail com> wrote:
Hi Elias,

I had touch events to work on a touch screen laptop last month.

What signal are you connecting? Because touch events happens on a different signal from the one for mouse events.

What version of Clutter are you using?

Are you embedding Clutter into a Gtk window?

Cheers,

-
Lionel


On 03/01/14 15:38, Elias Bakken wrote:
Hi!
I'm trying to get some basic functionality going with a touch screen. The device seems to be working fine using evtest and X but when trying to connect a signal (event) to the stage, nothing happens. A normal mouse seems to be working fine. Looking at the list of devices coming from the DeviceManager, I see the touch screen is found and has type CLUTTER_TOUCHSCREEN_DEVICE and is enabled. The core pointer also lists both the mouse and the touch screen as slave devices.

Does anyone have any pointers (pun intended:) for this?

I'm using Python as a language binding.

--
Kind regards,
-Elias



_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list



--
Kind regards, 
-Elias



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]