Exiting the tvOS keyboard using the Menu button...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Exiting the tvOS keyboard using the Menu button...

oviano
...I'm finding if I do this that I have to manually detect this button press and call SDL_StopTextInput myself. Otherwise it stays in text input mode.

That can't be right?

If you exit the keyboard by selecting the "Done" button on the screen then the text input is stopped automatically.

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: Exiting the tvOS keyboard using the Menu button...

Alex Szpakowski
Have you set the SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS SDL_hint variable?

On Dec 19, 2016, at 7:04 AM, oviano <[hidden email]> wrote:

...I'm finding if I do this that I have to manually detect this button press and call SDL_StopTextInput myself. Otherwise it stays in text input mode.

That can't be right?

If you exit the keyboard by selecting the "Done" button on the screen then the text input is stopped automatically.
_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: Exiting the tvOS keyboard using the Menu button...

oviano
In reply to this post by oviano
Thanks Alex - yes I thought about that but I get the same behaviour with or without that hint set.

Easiest way to observe the behaviour is in your main loop just output the values of SDL_IsTextInputActive() and SDL_IsScreenKeyboardShown(window).

What I see is that both these go to 1 when I'm editing, as expected.

If I exit via "Done" on the keyboard, they reset to 0.

If I exit via the menu button, both stay at 1.

Something isn't getting cleared down.

As I say, same behaviour with or without the hint set - which is interesting in itself, because with UI event disabled then it shouldn't be closing the keyboard with the Menu button in any case should it?

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org