OSDN Git Service

inputflinger: Initial support for rotary encoders.
authorPrashant Malani <pmalani@google.com>
Wed, 12 Aug 2015 01:29:28 +0000 (18:29 -0700)
committerPrashant Malani <pmalani@google.com>
Mon, 14 Sep 2015 20:55:21 +0000 (13:55 -0700)
commitac72bbf4e46d6689070df09a25db2960a9036eb2
treee1c0eeef8780ab788f52fbf13f5951425d832535
parent4baa69ddd25296ee40e84c230af88d1fc7e229a7
inputflinger: Initial support for rotary encoders.

This change introduces support for rotary encoder input devices.

We also define a new input source (namely, AINPUT_SOURCE_ROTARY_ENCODER)
and a new axis of input (namely, AXIS_SCROLL), since the rotary encoder
motion doesn't necessarily tie to a horizontal or vertical scroll
motion.

A ROTARY_ENCODER input device class is also introduced, corresponding to
the new input source.

A new input source can be defined as producing rotary encoder motion
events, if its corresponding .idc file contains the following
declaration:

    device.type = rotaryEncoder

Bug: 18707397

Change-Id: I8ccd540908311d1ff44fdfeba81b691895413641
Signed-off-by: Prashant Malani <pmalani@google.com>
include/android/input.h
services/inputflinger/EventHub.cpp
services/inputflinger/EventHub.h
services/inputflinger/InputReader.cpp
services/inputflinger/InputReader.h