From eb5dd2a2dea52e4b550774bc9a8a65fd5eb9f2da Mon Sep 17 00:00:00 2001 From: kazuki Date: Thu, 24 Aug 2023 12:23:57 +0900 Subject: [PATCH 1/2] fix inputfield when using textmeshpro --- .../Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs b/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs index c4c6b424e..509f8ffcc 100644 --- a/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs +++ b/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs @@ -213,6 +213,12 @@ unsafe Event CreateEvent(InputEventPtr ptr) // todo: not supported multibyte character. return null; } + if(utf32Char < 0x100) + { + // ignore control + if (char.IsControl((char)utf32Char)) + return null; + } return new Event { From 10aefd3de2bdf424ef05170c11d00cef06bbd32e Mon Sep 17 00:00:00 2001 From: Kazuki Matsumoto <1132081+karasusan@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:26:31 +0900 Subject: [PATCH 2/2] Update EmulateInputFieldEvent.cs --- .../Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs b/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs index 509f8ffcc..303dcde59 100644 --- a/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs +++ b/com.unity.renderstreaming/Runtime/Scripts/InputSystem/EmulateInputFieldEvent.cs @@ -213,7 +213,7 @@ unsafe Event CreateEvent(InputEventPtr ptr) // todo: not supported multibyte character. return null; } - if(utf32Char < 0x100) + if (utf32Char < 0x100) { // ignore control if (char.IsControl((char)utf32Char))