Page 1 of 1

Turn off TouchScreenKeyboard for TextBox in Unity

Posted: 14 Apr 2022, 11:43
by Danilo
Hi,
I try to find where in the Unity binding of NoesisGUI the TouchScreenKeyboard.Open() function is called so that I can tweak this piece of code to prevent Unity from opening the TouchScreenKeyboard on Android or iOS. I plan to create my own little Keyboard with Noesis so I won't need the TouchScreenKeyboard from Unity.

How do I prevent Unity/Noesis from opening the TouchScreenKeyboard in Unity when a TextBox gets focus?

Thanks for helping.
Greetings
Danilo

Re: Turn off TouchScreenKeyboard for TextBox in Unity

Posted: 14 Apr 2022, 12:50
by jsantos
NoesisUnity.cs is installing a software keyboard callback in NoesisUnity.Init() by doing
Noesis.GUI.SetSoftwareKeyboardCallback(SoftwareKeyboard);
Just commeting out that line will prevent Unity from opening the TouchScreenKeyboard

Re: Turn off TouchScreenKeyboard for TextBox in Unity

Posted: 14 Apr 2022, 14:48
by Danilo
Hi jsantos,

thanks for the quick response. I was looking in the wrong c#-file. I tried to find something related to the TextBox but couldn't find it there.
Thanks a lot.

Re: Turn off TouchScreenKeyboard for TextBox in Unity

Posted: 14 Apr 2022, 21:11
by jsantos
You welcome! Happy to help.