diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-10-14 16:44:35 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-10-14 17:15:04 -0700 |
commit | 6f29d3b2777ae32e995d45247c8234d83894b953 (patch) | |
tree | a5345bdaa6b06c655ff03d4118bd2538622a6bc0 /mm | |
parent | 881d824569aa2df75175aa882ada0c1e48212de3 (diff) | |
download | op-kernel-dev-6f29d3b2777ae32e995d45247c8234d83894b953.zip op-kernel-dev-6f29d3b2777ae32e995d45247c8234d83894b953.tar.gz |
Input: gpio_keys_polled - add support for abs/rel axis
This changAdd support for EV_ABS / EV_REL events to the gpio-keys-polled driver.
The driver already allows specifying what type of events (key / rel / abs)
a button generates when pressed, but for rel / abs axis we also need to
specify which value this specific gpio represents.
One use case is digital joysticks / direction-pads which are hooked up to
gpio, in this case we've left and right buttons which we want to map to
EV_ABS, ABS_X and we want generate events for left with a value of -1 and
for right with a value of +1 (and similar for up / down and ABS_Y).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions