diff options
| author | 2021-10-04 20:41:31 +0000 | |
|---|---|---|
| committer | 2021-10-04 20:41:31 +0000 | |
| commit | 08dec6cfd6dcc25cd2452e62b4b0a57fb9de60ce (patch) | |
| tree | 523a54ca8dcf5a6628ac1f032eda241b3c116c32 /libs/input/Input.cpp | |
| parent | aa561d166f41be8c7ced8f429c3c9a4cd2831ff0 (diff) | |
| parent | eb4a30c49f7f63296515c83b1f7999b6c7feb100 (diff) | |
Merge "TouchMode (4.2/n) Enhancing recycle to support touch mode event"
Diffstat (limited to 'libs/input/Input.cpp')
| -rw-r--r-- | libs/input/Input.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp index 1bc244c653..390ff965ec 100644 --- a/libs/input/Input.cpp +++ b/libs/input/Input.cpp @@ -968,6 +968,13 @@ void PooledInputEventFactory::recycle(InputEvent* event) { return; } break; + case AINPUT_EVENT_TYPE_TOUCH_MODE: + if (mTouchModeEventPool.size() < mMaxPoolSize) { + mTouchModeEventPool.push( + std::unique_ptr<TouchModeEvent>(static_cast<TouchModeEvent*>(event))); + return; + } + break; } delete event; } |