From 6c894c9bdea7bb383e6bc9fc04827bd45a140ebe Mon Sep 17 00:00:00 2001 From: miteruzo Date: Fri, 7 Jul 2023 12:36:02 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=BC=E3=83=9C=E3=83=BC=E3=83=89?= =?UTF-8?q?=EF=BC=8C=E3=82=BF=E3=83=83=E3=83=81=E4=BD=8D=E7=BD=AE=E5=88=A4?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/keyboard.mod.hsp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/keyboard.mod.hsp b/modules/keyboard.mod.hsp index 60847da..596266e 100644 --- a/modules/keyboard.mod.hsp +++ b/modules/keyboard.mod.hsp @@ -17,7 +17,9 @@ Hide #defcfunc local \ GetChar \ local l_ids,\ - local l_touchInfo + local l_touchInfo,\ + local l_charId,\ + local l_char if showing = False { Return "" } @@ -34,11 +36,12 @@ GetChar \ Return "" } - NoteSel charDict - ;text += l_ - NoteUnsel + l_charId = (1080 - l_touchInfo.1) / 96 * 5 + (l_touchInfo.2 - (1920 - 480)) / 96 - ;text += charDict + NoteSel charDict@Char + NoteGet l_char, l_charId + text += l_char + NoteUnsel Return ""