[NUI] Reuse internally created Key/Touch and reuse it
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 26 Apr 2023 09:10:39 +0000 (18:10 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 2 May 2023 07:43:54 +0000 (16:43 +0900)
commit3648bfb4915a2c1982c4ab9e8a301d2365c034f1
tree9dcd8015a8136bb32bd0d650dda1541775cc8f27
parent2d1527c882a71bd0c25cc01a06f822304f884c43
[NUI] Reuse internally created Key/Touch and reuse it

To reduce the GC call for each Event getter, let we create
Key/Touch only one time for each window, and reuse it.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.Window.cs
src/Tizen.NUI/src/public/Window/Window.cs