すくすくゴートうちゃん Android 版(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
802 B

  1. #module \
  2. Keyboard
  3. #deffunc local \
  4. Show
  5. showing = True
  6. text = ""
  7. Return
  8. #deffunc local \
  9. Hide
  10. showing = False
  11. Return
  12. #defcfunc local \
  13. GetChar \
  14. local l_ids,\
  15. local l_touchInfo,\
  16. local l_charId,\
  17. local l_char
  18. if showing = False {
  19. Return ""
  20. }
  21. MTList l_id
  22. If stat = 0 {
  23. Return ""
  24. }
  25. MTInfo l_touchInfo, l_id.0
  26. If l_touchInfo.2 < 1920 - 480 {
  27. Return ""
  28. }
  29. l_charId = (1080 - l_touchInfo.1) / 96 * 5 + (l_touchInfo.2 - (1920 - 480)) / 96
  30. NoteSel charDict@Char
  31. NoteGet l_char, l_charId
  32. text += l_char
  33. NoteUnsel
  34. Return ""
  35. #deffunc local \
  36. Draw
  37. If showing = False {
  38. Return
  39. }
  40. Color COLOUR_BLACK
  41. BoxF 0, 1920 - 480, 1080, 1920
  42. Repeat 50
  43. Pos 1080 - 96 * (cnt / 5 + 1), 1920 - 480 + 96 * (cnt \ 5)
  44. CelPut BUFFER_CHAR, cnt, 3, 3
  45. Loop
  46. Return
  47. #global