Re: [PATCH v2] evdev: use mtdev for multitouch devices

2012-03-20 Thread Kristian Hoegsberg
On Fri, Mar 16, 2012 at 05:33:03PM -0300, Tiago Vignatti wrote: > mtdev library translates all multitouch based devices to the slotted evdev > protocol. It provides an uniform interface for Weston, which eases mt > implementation when dealing with a big variety of devices. > > Weston on drm now di

Re: [PATCH v2] evdev: use mtdev for multitouch devices

2012-03-19 Thread Tiago Vignatti
On 03/17/2012 09:30 AM, Daniel Stone wrote: Hi, On 16 March 2012 20:33, Tiago Vignatti wrote: @@ -334,7 +337,11 @@ evdev_input_device_data(int fd, uint32_t mask, void *data) if (!ec->focus) return 1; - len = read(fd,&ev, sizeof ev); + if (device->mtdev) +

Re: [PATCH v2] evdev: use mtdev for multitouch devices

2012-03-17 Thread Daniel Stone
Hi, On 16 March 2012 20:33, Tiago Vignatti wrote: > @@ -334,7 +337,11 @@ evdev_input_device_data(int fd, uint32_t mask, void > *data) >        if (!ec->focus) >                return 1; > > -       len = read(fd, &ev, sizeof ev); > +       if (device->mtdev) > +               len = mtdev_get(dev

[PATCH v2] evdev: use mtdev for multitouch devices

2012-03-16 Thread Tiago Vignatti
mtdev library translates all multitouch based devices to the slotted evdev protocol. It provides an uniform interface for Weston, which eases mt implementation when dealing with a big variety of devices. Weston on drm now directly depends on such library. Signed-off-by: Tiago Vignatti Reviewed-b