キーボード,タッチ位置判定

This commit is contained in:
2023-07-07 12:36:02 +09:00
parent 34041e67c3
commit 6c894c9bde
+8 -5
View File
@@ -17,7 +17,9 @@ Hide
#defcfunc local \ #defcfunc local \
GetChar \ GetChar \
local l_ids,\ local l_ids,\
local l_touchInfo local l_touchInfo,\
local l_charId,\
local l_char
if showing = False { if showing = False {
Return "" Return ""
} }
@@ -34,11 +36,12 @@ GetChar \
Return "" Return ""
} }
NoteSel charDict l_charId = (1080 - l_touchInfo.1) / 96 * 5 + (l_touchInfo.2 - (1920 - 480)) / 96
;text += l_
NoteUnsel
;text += charDict NoteSel charDict@Char
NoteGet l_char, l_charId
text += l_char
NoteUnsel
Return "" Return ""