Message ID | 1311169146-20066-9-git-send-email-djkurtz@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 07/20/2011 06:39 AM, djkurtz@chromium.org wrote: > From: Daniel Kurtz <djkurtz@chromium.org> > > Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Meh, I guess... No more after 5! Acked-by: Chase Douglas <chase.douglas@canonical.com> -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Jul 20, 2011 at 09:39:05PM +0800, djkurtz@chromium.org wrote: > From: Daniel Kurtz <djkurtz@chromium.org> > Do we know what we want to do with this gesture? Because if not I'd rather not merge it for now, until there are real users. Thanks.
On Mon, Jul 25, 2011 at 4:29 PM, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > > On Wed, Jul 20, 2011 at 09:39:05PM +0800, djkurtz@chromium.org wrote: > > From: Daniel Kurtz <djkurtz@chromium.org> > > > > Do we know what we want to do with this gesture? Because if not I'd > rather not merge it for now, until there are real users. And do what instead? Report 5 fingers with BTN_TOOL_QUADTAP? > Thanks. > > -- > Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Jul 25, 2011 at 05:14:22PM +0800, Daniel Kurtz wrote: > On Mon, Jul 25, 2011 at 4:29 PM, Dmitry Torokhov > <dmitry.torokhov@gmail.com> wrote: > > > > On Wed, Jul 20, 2011 at 09:39:05PM +0800, djkurtz@chromium.org wrote: > > > From: Daniel Kurtz <djkurtz@chromium.org> > > > > > > > Do we know what we want to do with this gesture? Because if not I'd > > rather not merge it for now, until there are real users. > > And do what instead? > Report 5 fingers with BTN_TOOL_QUADTAP? > That, or nothing... The fact that the device can report 5 finger touch does not mean that anybody cares about this.
Hi Dmitry, et al, On Tue, Jul 26, 2011 at 2:16 AM, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > > On Mon, Jul 25, 2011 at 05:14:22PM +0800, Daniel Kurtz wrote: > > On Mon, Jul 25, 2011 at 4:29 PM, Dmitry Torokhov > > <dmitry.torokhov@gmail.com> wrote: > > > > > > On Wed, Jul 20, 2011 at 09:39:05PM +0800, djkurtz@chromium.org wrote: > > > > From: Daniel Kurtz <djkurtz@chromium.org> > > > > > > > > > > Do we know what we want to do with this gesture? Because if not I'd > > > rather not merge it for now, until there are real users. > > > > And do what instead? > > Report 5 fingers with BTN_TOOL_QUADTAP? > > > > That, or nothing... The fact that the device can report 5 finger touch > does not mean that anybody cares about this. > -- > Dmitry The only current use of this is to detect "resting thumb + 4-finger-scroll". "4-finger scroll" is a gesture supported by some applications and operating systems. "resting thumb" is when a clickpad user rests a finger (typically a thumb), in the bottom left "click zone" in anticipation of click+move=select gestures. Thus, this 4-finger scroll is actually sometimes a 5-finger gesture. Similarly, I work with many touchpads from different vendors, some of which do actually provide 5 independent finger coordinates. The drivers for these touchpads truly send 5 MT-B slots when 5 fingers are present. Should these drivers perform input_mt_report_pointer_emulation()? If so, should we add BTN_TOOL_QUINTTAP to allow them to report 5 fingers in emulation mode? Or is that ridiculous, since emulation is only for old userspace programs which wouldn't know what to do with QUINTTAP, anyway? -Dan -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 07/25/2011 11:16 AM, Dmitry Torokhov wrote: > On Mon, Jul 25, 2011 at 05:14:22PM +0800, Daniel Kurtz wrote: >> On Mon, Jul 25, 2011 at 4:29 PM, Dmitry Torokhov >> <dmitry.torokhov@gmail.com> wrote: >>> >>> On Wed, Jul 20, 2011 at 09:39:05PM +0800, djkurtz@chromium.org wrote: >>>> From: Daniel Kurtz <djkurtz@chromium.org> >>>> >>> >>> Do we know what we want to do with this gesture? Because if not I'd >>> rather not merge it for now, until there are real users. >> >> And do what instead? >> Report 5 fingers with BTN_TOOL_QUADTAP? >> > > That, or nothing... The fact that the device can report 5 finger touch > does not mean that anybody cares about this. The uTouch gesture stack supports up to 5 touch gestures, and although most of them are either hard to do on a trackpad or are not possible with this driver, I can think of uses for 5 finger tap. Unity uses four finger tap quite effectively I believe. There is a meaningful limit to this: five fingers on a human hand. It seems more arbitrary to stick the protocol limit at four fingers. -- Chase -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> > That, or nothing... The fact that the device can report 5 finger touch > > does not mean that anybody cares about this. > > -- > > Dmitry > > The only current use of this is to detect "resting thumb + 4-finger-scroll". > "4-finger scroll" is a gesture supported by some applications and > operating systems. > "resting thumb" is when a clickpad user rests a finger (typically a > thumb), in the bottom left "click zone" in anticipation of > click+move=select gestures. > Thus, this 4-finger scroll is actually sometimes a 5-finger gesture. Which is actually the same reason QUADTAP was added originally... are we entering a recursion here? ;-) I tend to agree with Dmitry - without a clear usage, it makes sense to instead wait to see which comes first - a five-finger usecase or a true MT device that everybody can afford. > Similarly, I work with many touchpads from different vendors, some of > which do actually provide 5 independent finger coordinates. The > drivers for these touchpads truly send 5 MT-B slots when 5 fingers are > present. > > Should these drivers perform input_mt_report_pointer_emulation()? > If so, should we add BTN_TOOL_QUINTTAP to allow them to report 5 > fingers in emulation mode? Pointer emulation is a separate issue from the number of finger reports. > Or is that ridiculous, since emulation is only for old userspace > programs which wouldn't know what to do with QUINTTAP, anyway? I would say yes. ;-) Cheers, Henrik -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index c48c81f..9150ee7 100644 --- a/drivers/input/input-mt.c +++ b/drivers/input/input-mt.c @@ -117,6 +117,7 @@ void input_mt_report_finger_count(struct input_dev *dev, int count) input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); + input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); } EXPORT_SYMBOL(input_mt_report_finger_count); diff --git a/include/linux/input.h b/include/linux/input.h index 068784e..4de4b46 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -503,6 +503,7 @@ struct input_keymap_entry { #define BTN_TOOL_FINGER 0x145 #define BTN_TOOL_MOUSE 0x146 #define BTN_TOOL_LENS 0x147 +#define BTN_TOOL_QUINTTAP 0x148 /* Five fingers on trackpad */ #define BTN_TOUCH 0x14a #define BTN_STYLUS 0x14b #define BTN_STYLUS2 0x14c