Re: [PATCH] Input: set INPUT_PROP_POINTING_STICK in hid-lenovo

2015-04-08 Thread Andreas Fleig
On Tue, Apr 7, 2015 at 5:42 , Dmitry Torokhov wrote: Without commenting on validity of making this decision based on presence or absence of LEDs the proper test would be: if (!test_bit(EV_LED, hi->input->evbit)) { Thanks, that's much cleaner. I'll also test for EV_REL instead, which

Re: [PATCH] Input: set INPUT_PROP_POINTING_STICK in hid-lenovo

2015-04-07 Thread Dmitry Torokhov
Hi Andreas, On Tue, Apr 7, 2015 at 2:32 AM, Andreas Fleig wrote: > Set flags INPUT_PROP_POINTER and INPUT_PROP_POINTING_STICK for the > trackpoint integrated in Lenovo USB and Bluetooth keyboards. Libinput checks > these flags to enable features such as middle-button-scrolling by default. > > Sig

[PATCH] Input: set INPUT_PROP_POINTING_STICK in hid-lenovo

2015-04-07 Thread Andreas Fleig
Set flags INPUT_PROP_POINTER and INPUT_PROP_POINTING_STICK for the trackpoint integrated in Lenovo USB and Bluetooth keyboards. Libinput checks these flags to enable features such as middle-button-scrolling by default. Signed-off-by: Andreas Fleig Cc: Peter Hutterer diff --git a/drivers/hid