diff options
| author | 2011-03-02 19:59:07 -0800 | |
|---|---|---|
| committer | 2011-03-02 19:59:07 -0800 | |
| commit | 18e9f5d241c2389a3dd6a6f1bccbebebf7df937c (patch) | |
| tree | a14464123bebfff64910d7c44b1759a699a6caa8 /include | |
| parent | e5091dd8df7db262ba2684485e7dfb162b37dca0 (diff) | |
| parent | d5ed285606a9f28d2102e086aaee5c9d1cb819b9 (diff) | |
Merge "Wake screen from external HID peripherals."
Diffstat (limited to 'include')
| -rw-r--r-- | include/ui/Input.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index 082f11c655..e92d7f5fc2 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -476,6 +476,11 @@ public: status_t writeToParcel(Parcel* parcel) const; #endif + static bool isTouchEvent(int32_t source, int32_t action); + inline bool isTouchEvent() const { + return isTouchEvent(mSource, mAction); + } + // Low-level accessors. inline const int32_t* getPointerIds() const { return mPointerIds.array(); } inline const nsecs_t* getSampleEventTimes() const { return mSampleEventTimes.array(); } |