The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
[SDL2][WINRT]OnScreenKeyboard
ArtemMetra


Joined: 23 Oct 2013
Posts: 16
Hallo everybody,
I have a question. Will there be OnScreenKeyboard support in SDL2 for WINRT (Windows 10, XBOX, Windows Phone) in the near future?

Best regards
Artem
DLudwig


Joined: 09 Feb 2012
Posts: 179
I'd guess 'probably not'. SDL's WinRT/UWP support is limited to 'CoreWindow', 'Direct3D' apps, minus support for XAML interoperability. As far as I've been able to tell, there's no way to display a keyboard in that type of WinRT/UWP app.

It's been a while since I've checked though. If someone wanted to do some research into that, it'd be a very big help on my end. Wink

-- David L.
[SDL2][WINRT]OnScreenKeyboard
Sik


Joined: 26 Nov 2011
Posts: 905
2016-04-15 19:17 GMT-03:00, DLudwig:
Quote:
It's been a while since I've checked though. If someone wanted to do some
research into that, it'd be a very big help on my end. Wink

I recall the problem being the app doesn't really have control over
the keyboard - it only appears when some sort of text input control
gets focus. It sounds like it should be possible to take the ugly way
and create a dummy control just to show/hide the virtual keyboard, but
dunno if anybody wants to do that.
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
[SDL2][WINRT]OnScreenKeyboard
ArtemMetra


Joined: 23 Oct 2013
Posts: 16
Thanks for the answers. Gesendet: Samstag, 16. April 2016 um 02:40 Uhr Von: "Sik the hedgehog" An: Betreff: Re: [SDL] [SDL2][WINRT]OnScreenKeyboard
2016-04-15 19:17 GMT-03:00, DLudwig: > It's been a while since I've checked though. If someone wanted to do some > research into that, it'd be a very big help on my end. Wink I recall the problem being the app doesn't really have control over the keyboard - it only appears when some sort of text input control gets focus. It sounds like it should be possible to take the ugly way and create a dummy control just to show/hide the virtual keyboard, but dunno if anybody wants to do that. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
DLudwig


Joined: 09 Feb 2012
Posts: 179
On second look, it looks like Microsoft might've added an API for this to Windows 10 (via the Windows::UI::ViewManagement::InputPane class), one that seems like it allows the OS' on-screen keyboard to be displayed in CoreWindow/Direct3D apps.

I can plan on seeing if this works at some point over the next few weeks, but make no guarantees.

-- David L.
Re: [SDL2][WINRT]OnScreenKeyboard
DLudwig


Joined: 09 Feb 2012
Posts: 179
ArtemMetra wrote:
Will there be OnScreenKeyboard support in SDL2 for WINRT (Windows 10, XBOX, Windows Phone) in the near future?


On-screen keyboard is now in SDL2/HG, as of a change pushed out earlier today ( https://hg.libsdl.org/SDL/rev/0f89301aae00 ).

Support is limited to apps built for Windows 10 (i.e. UWP apps). It uses Win10's InputPane class ( https://msdn.microsoft.com/library/windows/apps/br242255 ), behind the scenes.

Cheers!
-- David L.