Re: [PATCH 2/2] Input: gpio_keys - Set ABS params when using axes

2016-11-03 Thread Dmitry Torokhov
On Tue, Nov 01, 2016 at 11:25:04AM +0100, Paul Cercueil wrote: > The gpio-keys supports the EV_ABS event type, but does not actually > configure the input device to work with that mode. > > This patch configures the axis corresponding to button->code as being > in the range [-1,+1]. This makes it

[PATCH 2/2] Input: gpio_keys - Set ABS params when using axes

2016-11-01 Thread Paul Cercueil
The gpio-keys supports the EV_ABS event type, but does not actually configure the input device to work with that mode. This patch configures the axis corresponding to button->code as being in the range [-1,+1]. This makes it possible to use gpio-keys to implement a hat (using the ABS_HAT0X /ABS_HA