keys.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. package gg
  2. import (
  3. "github.com/hajimehoshi/ebiten/v2"
  4. )
  5. type Key = ebiten.Key
  6. const (
  7. KeyA Key = Key(ebiten.KeyA)
  8. KeyB Key = Key(ebiten.KeyB)
  9. KeyC Key = Key(ebiten.KeyC)
  10. KeyD Key = Key(ebiten.KeyD)
  11. KeyE Key = Key(ebiten.KeyE)
  12. KeyF Key = Key(ebiten.KeyF)
  13. KeyG Key = Key(ebiten.KeyG)
  14. KeyH Key = Key(ebiten.KeyH)
  15. KeyI Key = Key(ebiten.KeyI)
  16. KeyJ Key = Key(ebiten.KeyJ)
  17. KeyK Key = Key(ebiten.KeyK)
  18. KeyL Key = Key(ebiten.KeyL)
  19. KeyM Key = Key(ebiten.KeyM)
  20. KeyN Key = Key(ebiten.KeyN)
  21. KeyO Key = Key(ebiten.KeyO)
  22. KeyP Key = Key(ebiten.KeyP)
  23. KeyQ Key = Key(ebiten.KeyQ)
  24. KeyR Key = Key(ebiten.KeyR)
  25. KeyS Key = Key(ebiten.KeyS)
  26. KeyT Key = Key(ebiten.KeyT)
  27. KeyU Key = Key(ebiten.KeyU)
  28. KeyV Key = Key(ebiten.KeyV)
  29. KeyW Key = Key(ebiten.KeyW)
  30. KeyX Key = Key(ebiten.KeyX)
  31. KeyY Key = Key(ebiten.KeyY)
  32. KeyZ Key = Key(ebiten.KeyZ)
  33. KeyAltLeft Key = Key(ebiten.KeyAltLeft)
  34. KeyAltRight Key = Key(ebiten.KeyAltRight)
  35. //KeyArrowDown Key = Key(ebiten.KeyArrowDown)
  36. //KeyArrowLeft Key = Key(ebiten.KeyArrowLeft)
  37. //KeyArrowRight Key = Key(ebiten.KeyArrowRight)
  38. //KeyArrowUp Key = Key(ebiten.KeyArrowUp)
  39. KeyBackquote Key = Key(ebiten.KeyBackquote)
  40. KeyBackslash Key = Key(ebiten.KeyBackslash)
  41. KeyBackspace Key = Key(ebiten.KeyBackspace)
  42. KeyBracketLeft Key = Key(ebiten.KeyBracketLeft)
  43. KeyBracketRight Key = Key(ebiten.KeyBracketRight)
  44. KeyCapsLock Key = Key(ebiten.KeyCapsLock)
  45. KeyComma Key = Key(ebiten.KeyComma)
  46. KeyContextMenu Key = Key(ebiten.KeyContextMenu)
  47. KeyControlLeft Key = Key(ebiten.KeyControlLeft)
  48. KeyControlRight Key = Key(ebiten.KeyControlRight)
  49. KeyDelete Key = Key(ebiten.KeyDelete)
  50. KeyDigit0 Key = Key(ebiten.KeyDigit0)
  51. KeyDigit1 Key = Key(ebiten.KeyDigit1)
  52. KeyDigit2 Key = Key(ebiten.KeyDigit2)
  53. KeyDigit3 Key = Key(ebiten.KeyDigit3)
  54. KeyDigit4 Key = Key(ebiten.KeyDigit4)
  55. KeyDigit5 Key = Key(ebiten.KeyDigit5)
  56. KeyDigit6 Key = Key(ebiten.KeyDigit6)
  57. KeyDigit7 Key = Key(ebiten.KeyDigit7)
  58. KeyDigit8 Key = Key(ebiten.KeyDigit8)
  59. KeyDigit9 Key = Key(ebiten.KeyDigit9)
  60. KeyEnd Key = Key(ebiten.KeyEnd)
  61. KeyEnter Key = Key(ebiten.KeyEnter)
  62. KeyEqual Key = Key(ebiten.KeyEqual)
  63. KeyEscape Key = Key(ebiten.KeyEscape)
  64. KeyF1 Key = Key(ebiten.KeyF1)
  65. KeyF2 Key = Key(ebiten.KeyF2)
  66. KeyF3 Key = Key(ebiten.KeyF3)
  67. KeyF4 Key = Key(ebiten.KeyF4)
  68. KeyF5 Key = Key(ebiten.KeyF5)
  69. KeyF6 Key = Key(ebiten.KeyF6)
  70. KeyF7 Key = Key(ebiten.KeyF7)
  71. KeyF8 Key = Key(ebiten.KeyF8)
  72. KeyF9 Key = Key(ebiten.KeyF9)
  73. KeyF10 Key = Key(ebiten.KeyF10)
  74. KeyF11 Key = Key(ebiten.KeyF11)
  75. KeyF12 Key = Key(ebiten.KeyF12)
  76. KeyHome Key = Key(ebiten.KeyHome)
  77. KeyInsert Key = Key(ebiten.KeyInsert)
  78. KeyMetaLeft Key = Key(ebiten.KeyMetaLeft)
  79. KeyMetaRight Key = Key(ebiten.KeyMetaRight)
  80. KeyMinus Key = Key(ebiten.KeyMinus)
  81. KeyNumLock Key = Key(ebiten.KeyNumLock)
  82. KeyNumpad0 Key = Key(ebiten.KeyNumpad0)
  83. KeyNumpad1 Key = Key(ebiten.KeyNumpad1)
  84. KeyNumpad2 Key = Key(ebiten.KeyNumpad2)
  85. KeyNumpad3 Key = Key(ebiten.KeyNumpad3)
  86. KeyNumpad4 Key = Key(ebiten.KeyNumpad4)
  87. KeyNumpad5 Key = Key(ebiten.KeyNumpad5)
  88. KeyNumpad6 Key = Key(ebiten.KeyNumpad6)
  89. KeyNumpad7 Key = Key(ebiten.KeyNumpad7)
  90. KeyNumpad8 Key = Key(ebiten.KeyNumpad8)
  91. KeyNumpad9 Key = Key(ebiten.KeyNumpad9)
  92. KeyNumpadAdd Key = Key(ebiten.KeyNumpadAdd)
  93. KeyNumpadDecimal Key = Key(ebiten.KeyNumpadDecimal)
  94. KeyNumpadDivide Key = Key(ebiten.KeyNumpadDivide)
  95. KeyNumpadEnter Key = Key(ebiten.KeyNumpadEnter)
  96. KeyNumpadEqual Key = Key(ebiten.KeyNumpadEqual)
  97. KeyNumpadMultiply Key = Key(ebiten.KeyNumpadMultiply)
  98. KeyNumpadSubtract Key = Key(ebiten.KeyNumpadSubtract)
  99. KeyPageDown Key = Key(ebiten.KeyPageDown)
  100. KeyPageUp Key = Key(ebiten.KeyPageUp)
  101. KeyPause Key = Key(ebiten.KeyPause)
  102. KeyPeriod Key = Key(ebiten.KeyPeriod)
  103. KeyPrintScreen Key = Key(ebiten.KeyPrintScreen)
  104. KeyQuote Key = Key(ebiten.KeyQuote)
  105. KeyScrollLock Key = Key(ebiten.KeyScrollLock)
  106. KeySemicolon Key = Key(ebiten.KeySemicolon)
  107. KeyShiftLeft Key = Key(ebiten.KeyShiftLeft)
  108. KeyShiftRight Key = Key(ebiten.KeyShiftRight)
  109. KeySlash Key = Key(ebiten.KeySlash)
  110. KeySpace Key = Key(ebiten.KeySpace)
  111. KeyTab Key = Key(ebiten.KeyTab)
  112. KeyAlt Key = Key(ebiten.KeyAlt)
  113. KeyControl Key = Key(ebiten.KeyControl)
  114. KeyShift Key = Key(ebiten.KeyShift)
  115. KeyMeta Key = Key(ebiten.KeyMeta)
  116. KeyMax Key = KeyMeta
  117. // Keys for backward compatibility.
  118. // Deprecated: as of v2.1.
  119. Key0 Key = Key(ebiten.KeyDigit0)
  120. Key1 Key = Key(ebiten.KeyDigit1)
  121. Key2 Key = Key(ebiten.KeyDigit2)
  122. Key3 Key = Key(ebiten.KeyDigit3)
  123. Key4 Key = Key(ebiten.KeyDigit4)
  124. Key5 Key = Key(ebiten.KeyDigit5)
  125. Key6 Key = Key(ebiten.KeyDigit6)
  126. Key7 Key = Key(ebiten.KeyDigit7)
  127. Key8 Key = Key(ebiten.KeyDigit8)
  128. Key9 Key = Key(ebiten.KeyDigit9)
  129. KeyApostrophe Key = Key(ebiten.KeyQuote)
  130. KeyArrowDown Key = Key(ebiten.KeyArrowDown)
  131. KeyGraveAccent Key = Key(ebiten.KeyBackquote)
  132. KeyKP0 Key = Key(ebiten.KeyNumpad0)
  133. KeyKP1 Key = Key(ebiten.KeyNumpad1)
  134. KeyKP2 Key = Key(ebiten.KeyNumpad2)
  135. KeyKP3 Key = Key(ebiten.KeyNumpad3)
  136. KeyKP4 Key = Key(ebiten.KeyNumpad4)
  137. KeyKP5 Key = Key(ebiten.KeyNumpad5)
  138. KeyKP6 Key = Key(ebiten.KeyNumpad6)
  139. KeyKP7 Key = Key(ebiten.KeyNumpad7)
  140. KeyKP8 Key = Key(ebiten.KeyNumpad8)
  141. KeyKP9 Key = Key(ebiten.KeyNumpad9)
  142. KeyKPAdd Key = Key(ebiten.KeyNumpadAdd)
  143. KeyKPDecimal Key = Key(ebiten.KeyNumpadDecimal)
  144. KeyKPDivide Key = Key(ebiten.KeyNumpadDivide)
  145. KeyKPEnter Key = Key(ebiten.KeyNumpadEnter)
  146. KeyKPEqual Key = Key(ebiten.KeyNumpadEqual)
  147. KeyKPMultiply Key = Key(ebiten.KeyNumpadMultiply)
  148. KeyKPSubtract Key = Key(ebiten.KeyNumpadSubtract)
  149. KeyArrowLeft Key = Key(ebiten.KeyArrowLeft)
  150. KeyLeftBracket Key = Key(ebiten.KeyBracketLeft)
  151. KeyMenu Key = Key(ebiten.KeyContextMenu)
  152. KeyArrowRight Key = Key(ebiten.KeyArrowRight)
  153. KeyRightBracket Key = Key(ebiten.KeyBracketRight)
  154. KeyArrowUp Key = Key(ebiten.KeyArrowUp)
  155. )