diff options
author | Michael Wright <michaelwr@google.com> | 2013-07-10 18:05:15 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2013-07-11 15:24:09 -0700 |
commit | 931fd6dee7891e94650353c09956ccf24b4dfff3 (patch) | |
tree | bf2115128cdad1b2973aa4c894a09ffae1213700 /include/input | |
parent | bb7272f137ad3558bba5ee3a31dcfe4f41cc797f (diff) | |
download | frameworks_native-931fd6dee7891e94650353c09956ccf24b4dfff3.zip frameworks_native-931fd6dee7891e94650353c09956ccf24b4dfff3.tar.gz frameworks_native-931fd6dee7891e94650353c09956ccf24b4dfff3.tar.bz2 |
Add input device property for buttons under touchpads
Bug: 8990644
Change-Id: I6df5fb9e11199173d62523928082db428af55394
Diffstat (limited to 'include/input')
-rw-r--r-- | include/input/InputDevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input/InputDevice.h b/include/input/InputDevice.h index 4672ad4..d8256c1 100644 --- a/include/input/InputDevice.h +++ b/include/input/InputDevice.h @@ -101,6 +101,9 @@ public: inline void setVibrator(bool hasVibrator) { mHasVibrator = hasVibrator; } inline bool hasVibrator() const { return mHasVibrator; } + inline void setButtonUnderPad(bool hasButton) { mHasButtonUnderPad = hasButton; } + inline bool hasButtonUnderPad() const { return mHasButtonUnderPad; } + inline const Vector<MotionRange>& getMotionRanges() const { return mMotionRanges; } @@ -115,6 +118,7 @@ private: int32_t mKeyboardType; sp<KeyCharacterMap> mKeyCharacterMap; bool mHasVibrator; + bool mHasButtonUnderPad; Vector<MotionRange> mMotionRanges; }; |