[Scummvm-git-logs] scummvm master -> 6b1415657a33891d03acbcfd3fcf4404b4b7d88c
neuromancer
noreply at scummvm.org
Mon Mar 20 07:58:55 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6b1415657a HYPNO: show virtual keyboard when a player name should be introduced
Commit: 6b1415657a33891d03acbcfd3fcf4404b4b7d88c
https://github.com/scummvm/scummvm/commit/6b1415657a33891d03acbcfd3fcf4404b4b7d88c
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-03-20T08:58:49+01:00
Commit Message:
HYPNO: show virtual keyboard when a player name should be introduced
Changed paths:
engines/hypno/boyz/hard.cpp
engines/hypno/wet/hard.cpp
diff --git a/engines/hypno/boyz/hard.cpp b/engines/hypno/boyz/hard.cpp
index b525e867b9b..80a1ef6bf5a 100644
--- a/engines/hypno/boyz/hard.cpp
+++ b/engines/hypno/boyz/hard.cpp
@@ -73,6 +73,7 @@ void BoyzEngine::runMainMenu(Code *code) {
if (posY >= 185)
break;
}
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
while (!shouldQuit() && cont) {
while (g_system->getEventManager()->pollEvent(event)) {
// Events
@@ -117,6 +118,7 @@ void BoyzEngine::runMainMenu(Code *code) {
drawScreen();
g_system->delayMillis(10);
}
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
menu->free();
delete menu;
diff --git a/engines/hypno/wet/hard.cpp b/engines/hypno/wet/hard.cpp
index 7b95a8ebe86..3e23fa87025 100644
--- a/engines/hypno/wet/hard.cpp
+++ b/engines/hypno/wet/hard.cpp
@@ -144,6 +144,7 @@ void WetEngine::runMainMenu(Code *code) {
drawImage(surName, subName.left, subName.top, true);
drawString("scifi08.fgx", _enterNameString, 48, 50, 100, c);
_name.clear();
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
bool cont = true;
while (!shouldQuit() && cont) {
while (g_system->getEventManager()->pollEvent(event)) {
@@ -209,6 +210,7 @@ void WetEngine::runMainMenu(Code *code) {
_name.toLowercase();
bool found = loadProfile(_name);
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
if (found || _name.empty()) {
menu->free();
delete menu;
More information about the Scummvm-git-logs
mailing list