forums.PPSSPP.org
[Idea] Possible on-screen keyboard replacement - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Development (/forumdisplay.php?fid=3)
+--- Thread: [Idea] Possible on-screen keyboard replacement (/showthread.php?tid=11343)

Pages: 1 2


[Idea] Possible on-screen keyboard replacement - TheDax - 04-01-2014 08:46 PM

I'm not sure if I'll get really serious about this (mostly depends on feedback), but I decided to take a stab at replacing the current OSK we're using with a UIScreenWithBackground that has a bunch of touch buttons on it. Here's how it's looking so far (it's non-functional yet, as in, the game can call it up, but it can only be dismissed for now), and ` and | are included where tab, caps, return, etc., would be, and the button sizes/positions are subject to change of course:

[Image: io5ljrYBvzSPn.jpg]

It could even be extended to be used elsewhere, methinks, such as entering the PSP nickname, or other pieces of data, once we can actually input text with it.

What do you think? Should we work towards a new OSK screen which can be a lot easier to use than the somewhat clunky one we have now?

The PS Vita uses its own touch input-based OSK (it doesn't even simulate the horrible PSP one), so I think it makes some sense to have one as well, since the primary audience for the emulator is mobile.


RE: [Idea] Possible on-screen keyboard replacement - Raimoo - 04-01-2014 08:55 PM

Hmm... pretty useful especially for Andriod user. And... yeah maybe you should work on a new OSK screen somehow...

well that's my opinion for now


RE: [Idea] Possible on-screen keyboard replacement - TheDax - 04-01-2014 08:59 PM

That's the idea, to make it more touchscreen friendly. I'd also like to make it so that typing on a physical keyboard inputs or deletes letters as well (so that it's desktop friendly), but I'm not sure how feasible that is at the moment. Another benefit of writing our own is that we don't have to worry about how to bring up native touch keyboards on any platform, so it keeps the code simpler.


RE: [Idea] Possible on-screen keyboard replacement - vnctdj - 04-01-2014 09:09 PM

I'm not against it...
Touchscreen users will be happy Wink


RE: [Idea] Possible on-screen keyboard replacement - Henrik - 04-01-2014 09:18 PM

We can pop up a standard input text box on Android fairly easily, but it would look pretty jarring.

I think this would be pretty nice to have.


RE: [Idea] Possible on-screen keyboard replacement - TheDax - 04-01-2014 09:46 PM

Thanks for the feedback, guys. I think I'll go ahead and keep plugging away at it and see what we end up with. I still need to figure out how to position the gridlayouts and linearlayouts a bit better, but I'll save that for last; gotta get the thing working first.


RE: [Idea] Possible on-screen keyboard replacement - Obi55 - 04-02-2014 09:33 AM

This is what I have been waiting for.


RE: [Idea] Possible on-screen keyboard replacement - TheDax - 04-02-2014 07:53 PM

Progress update for 4/3/2014: Started working on the idea of using the physical keyboard to input text.

Progress update for 4/6/2014: The keyboard screen is mostly done, but it's still not 100% ready. Here's how it looks now:

[Image: iemzhQBNLO3U9.jpg]

I plan on converting those language buttons into a tab group/strip so it looks nicer, but for now it'll stay the way it is.


RE: [Idea] Possible on-screen keyboard replacement - Obi55 - 04-07-2014 11:24 AM

I know some guys on the Dissidia Forums that could use this to make custom quests faster.


RE: [Idea] Possible on-screen keyboard replacement - vnctdj - 04-07-2014 05:00 PM

(04-02-2014 07:53 PM)TheDax Wrote:  Progress update for 4/3/2014: Started working on the idea of using the physical keyboard to input text.

Progress update for 4/6/2014: The keyboard screen is mostly done, but it's still not 100% ready. Here's how it looks now:

[Image: iemzhQBNLO3U9.jpg]

I plan on converting those language buttons into a tab group/strip so it looks nicer, but for now it'll stay the way it is.

Nice Smile
And what about an AZERTY version ? Smile

[Image: 1000px-Clavier-Azerty.svg.png]


RE: [Idea] Possible on-screen keyboard replacement - TheDax - 04-15-2014 07:15 AM

Sorry for the late reply. Pretty much any keyboard layout could be added. The toughest ones are Korean and Japanese; I'm still trying to figure out the best way to approach those, in regards to using a physical keyboard. I might just leave support for those out, initially. It'd be nice to have this added to the mainstream builds, once it's mostly working.

While I'm here, I'll post a progress report: I've got language switching working fine, and games are accepting input from my KeyboardScreen now. They also run properly in the background (meaning this screen works like the current OSK where you hear the music in the background and such). This keyboard screen also will allow users to finally change the PSP nickname on all platforms, and not just Windows.

I removed the choice buttons and went for one button for languages (which will be conveniently translated using the "Language" key from your translation inis):
[Image: ibulaZJKXgmWeB.jpg]

Here's a screenshot of the Japanese Hiragana keyboard (just as an example of how the keyboard itself looks currently; still need to implement diacritics and such):
[Image: iflOQXbOhty2F.jpg]

I still need to figure out how to position GridLayouts better..


RE: [Idea] Possible on-screen keyboard replacement - vnctdj - 04-15-2014 08:12 AM

Good progress Smile
I like the idea of the new language switching Smile
But about grid layout, apart from inspiring by existent keyboards, I don't know Undecided


RE: [Idea] Possible on-screen keyboard replacement - TheDax - 04-15-2014 08:59 AM

I figured out how to position the buttons better thanks to a suggestion from Henrik:

[Image: ibrkp6bZPARo9d.jpg]

This is starting to look and feel quite complete. Smile


RE: [Idea] Possible on-screen keyboard replacement - vnctdj - 04-15-2014 09:59 AM

This seems good Smile
But no Caps Lock ?


RE: [Idea] Possible on-screen keyboard replacement - TheDax - 04-15-2014 10:15 AM

Shift is a bit of a misnomer I suppose; it switches to the uppercase or lowercase keyboard of the same language (for Japanese it switches between Katakana/Hiragana, and Korean, it swaps to a keyboard as if you held shift, so you can input symbols like !, @, etc.), so it's basically caps lock. As for physical keyboard stuff, no, it doesn't have caps lock yet, so holding shift is needed at the moment to input in uppercase repeatedly.