Danilo
Topic Author
Posts: 17
Joined: 25 Nov 2021, 14:36

Turn off TouchScreenKeyboard for TextBox in Unity

14 Apr 2022, 11:43

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
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Turn off TouchScreenKeyboard for TextBox in Unity

14 Apr 2022, 12:50

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
 
Danilo
Topic Author
Posts: 17
Joined: 25 Nov 2021, 14:36

Re: Turn off TouchScreenKeyboard for TextBox in Unity

14 Apr 2022, 14:48

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.
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Turn off TouchScreenKeyboard for TextBox in Unity

14 Apr 2022, 21:11

You welcome! Happy to help.

Who is online

Users browsing this forum: No registered users and 5 guests