X-Git-Url: https://plomlompom.com/repos/pick_tasks?a=blobdiff_plain;f=rogue_chat.html;h=c10f7caed0e92b78dc2220a59f27bee4db5ac97c;hb=de938984f8edbb39ddf1fc8062e836baa9ab4465;hp=636773d9b8bbc672b76db1dec71b4920544ced02;hpb=abe1a5c8ba591abffbd498503794267ae130ae9e;p=plomrogue2
diff --git a/rogue_chat.html b/rogue_chat.html
index 636773d..c10f7ca 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -11,12 +11,14 @@
-
source code (includes proper terminal / curses client)
+keyboard input/control:
+
button controls for mouse players
@@ -1377,6 +1379,15 @@ window.setInterval(function() {
tui.log_msg('@ attempting reconnect â¦')
}
}, 5000);
+window.setInterval(function() {
+ let val = "?";
+ if (document.activeElement == tui.inputEl) {
+ val = "on (click outside terminal to change)";
+ } else {
+ val = "off (click into terminal to change)";
+ };
+ document.getElementById("keyboard_control").textContent = val;
+}, 100);
document.getElementById("terminal").onclick = function() {
tui.inputEl.focus();
};