From bbbc8679605e48b9938c0833042e0e56ca4d40e9 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Thu, 6 Jul 2023 12:36:13 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=BC=E3=83=9C=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=AE=E8=A8=AD=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/char.mod.hsp | 2 +- modules/keyboard.mod.hsp | 27 ++++++++++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/modules/char.mod.hsp b/modules/char.mod.hsp index 1d5c5bf..ff2c7b1 100644 --- a/modules/char.mod.hsp +++ b/modules/char.mod.hsp @@ -47,7 +47,7 @@ Draw \ found = NoteFind (StrMid (text.cnt_, cnt * 3, 3)) - If (found = -1) { + If found = -1 { found = UNKNOWN } diff --git a/modules/keyboard.mod.hsp b/modules/keyboard.mod.hsp index 701455a..9caea73 100644 --- a/modules/keyboard.mod.hsp +++ b/modules/keyboard.mod.hsp @@ -1,15 +1,32 @@ #module \ Keyboard -#defcfunc local \ -New - insNum++ +#deffunc local \ +Show + showing = True + text = "" + + Return + +#deffunc local \ +Hide + showing = False - Return insNum - 1 + Return #deffunc local \ -Set \ +GetChar + if showing = False { + Return "" + } + ; text += charDict + + Return "" + +#deffunc local \ +Draw + #global