Jazz2::UI::Windows::OnScreenKeyboard class

Keyboard on the screen, for a gamepad or a touch screen where the system has none.

It types into the box that has the focus as a keyboard would, its keys don't take the focus. It stays at the bottom of the screen until the text is confirmed, or the box loses the focus.

Base classes

class Panel
A stack with a background.

Public static functions

static void Show(Surface& surface)
Shows the keyboard, unless it's shown already.
static auto IsShown(const Surface& surface) -> bool
Returns true if the keyboard is shown.

Constructors, destructors, conversion operators

OnScreenKeyboard()
~OnScreenKeyboard() override

Public functions

void Update(float timeMult) override
Advances animations of the element and its children.
auto KeepsFocus() const -> bool override
Returns true if a click on the element, or inside of it, leaves the focus where it is, as the keys of a keyboard on the screen.