Re: [PATCH 1/2] evdev: Add support for device quirks and implement axes swapping

2012-09-19 Thread Rob Bradford
On 19 September 2012 07:09, Pekka Paalanen wrote: > On Tue, 18 Sep 2012 16:44:57 +0100 Hi Pekka, > this seems to have quite much of code duplication. Would it not be any > easier to do the swap only at notify_*() calling time instead? > Or do you really need to limit it to these very specific ev

Re: [PATCH 1/2] evdev: Add support for device quirks and implement axes swapping

2012-09-18 Thread Pekka Paalanen
On Tue, 18 Sep 2012 16:44:57 +0100 Rob Bradford wrote: > From: Rob Bradford > > This quirk is designed for hardware that has the X and Y axes swapped for > absolute events. > --- > src/evdev.c | 68 > - > src/evdev.h | 6 ++ > 2

[PATCH 1/2] evdev: Add support for device quirks and implement axes swapping

2012-09-18 Thread Rob Bradford
From: Rob Bradford This quirk is designed for hardware that has the X and Y axes swapped for absolute events. --- src/evdev.c | 68 - src/evdev.h | 6 ++ 2 files changed, 55 insertions(+), 19 deletions(-) diff --git a/src/evdev.c