Emscripten: console text input

This commit is contained in:
Sergii Pylypenko
2021-07-07 23:46:07 +03:00
parent a3b87d43a3
commit 487c2f76a9
2 changed files with 43 additions and 2 deletions

View File

@@ -89,12 +89,12 @@
}
#textinputbox {
width: 95%;
width: 100%;
font-size: xx-large;
}
#textinputbutton {
width: 95%;
width: 100%;
}
canvas.emscripten {
@@ -226,6 +226,10 @@
textInputValue: null,
startTextInput: function(text) {
if (document.getElementById("textinput").style.display != "none") {
//Module.print("Text input already started");
return;
}
//Module.print("Start text input!");
Module.textInputValue = null;
document.getElementById("textinput").style.display = "block";