updated ebiten version from 2.7.9 to 2.9.9

This commit is contained in:
2026-06-15 19:06:55 +02:00
parent 21edbc41c4
commit db1b625069
405 changed files with 31913 additions and 12595 deletions
+4 -256
View File
@@ -148,10 +148,10 @@ const (
KeySlash Key = Key(ui.KeySlash)
KeySpace Key = Key(ui.KeySpace)
KeyTab Key = Key(ui.KeyTab)
KeyAlt Key = Key(ui.KeyReserved0)
KeyControl Key = Key(ui.KeyReserved1)
KeyShift Key = Key(ui.KeyReserved2)
KeyMeta Key = Key(ui.KeyReserved3)
KeyAlt Key = Key(ui.KeyAlt)
KeyControl Key = Key(ui.KeyControl)
KeyShift Key = Key(ui.KeyShift)
KeyMeta Key = Key(ui.KeyMeta)
KeyMax Key = KeyMeta
// Keys for backward compatibility.
@@ -194,258 +194,6 @@ const (
KeyUp Key = Key(ui.KeyArrowUp)
)
func (k Key) isValid() bool {
switch k {
case KeyA:
return true
case KeyB:
return true
case KeyC:
return true
case KeyD:
return true
case KeyE:
return true
case KeyF:
return true
case KeyG:
return true
case KeyH:
return true
case KeyI:
return true
case KeyJ:
return true
case KeyK:
return true
case KeyL:
return true
case KeyM:
return true
case KeyN:
return true
case KeyO:
return true
case KeyP:
return true
case KeyQ:
return true
case KeyR:
return true
case KeyS:
return true
case KeyT:
return true
case KeyU:
return true
case KeyV:
return true
case KeyW:
return true
case KeyX:
return true
case KeyY:
return true
case KeyZ:
return true
case KeyAlt:
return true
case KeyAltLeft:
return true
case KeyAltRight:
return true
case KeyArrowDown:
return true
case KeyArrowLeft:
return true
case KeyArrowRight:
return true
case KeyArrowUp:
return true
case KeyBackquote:
return true
case KeyBackslash:
return true
case KeyBackspace:
return true
case KeyBracketLeft:
return true
case KeyBracketRight:
return true
case KeyCapsLock:
return true
case KeyComma:
return true
case KeyContextMenu:
return true
case KeyControl:
return true
case KeyControlLeft:
return true
case KeyControlRight:
return true
case KeyDelete:
return true
case KeyDigit0:
return true
case KeyDigit1:
return true
case KeyDigit2:
return true
case KeyDigit3:
return true
case KeyDigit4:
return true
case KeyDigit5:
return true
case KeyDigit6:
return true
case KeyDigit7:
return true
case KeyDigit8:
return true
case KeyDigit9:
return true
case KeyEnd:
return true
case KeyEnter:
return true
case KeyEqual:
return true
case KeyEscape:
return true
case KeyF1:
return true
case KeyF2:
return true
case KeyF3:
return true
case KeyF4:
return true
case KeyF5:
return true
case KeyF6:
return true
case KeyF7:
return true
case KeyF8:
return true
case KeyF9:
return true
case KeyF10:
return true
case KeyF11:
return true
case KeyF12:
return true
case KeyF13:
return true
case KeyF14:
return true
case KeyF15:
return true
case KeyF16:
return true
case KeyF17:
return true
case KeyF18:
return true
case KeyF19:
return true
case KeyF20:
return true
case KeyF21:
return true
case KeyF22:
return true
case KeyF23:
return true
case KeyF24:
return true
case KeyHome:
return true
case KeyInsert:
return true
case KeyIntlBackslash:
return true
case KeyMeta:
return true
case KeyMetaLeft:
return true
case KeyMetaRight:
return true
case KeyMinus:
return true
case KeyNumLock:
return true
case KeyNumpad0:
return true
case KeyNumpad1:
return true
case KeyNumpad2:
return true
case KeyNumpad3:
return true
case KeyNumpad4:
return true
case KeyNumpad5:
return true
case KeyNumpad6:
return true
case KeyNumpad7:
return true
case KeyNumpad8:
return true
case KeyNumpad9:
return true
case KeyNumpadAdd:
return true
case KeyNumpadDecimal:
return true
case KeyNumpadDivide:
return true
case KeyNumpadEnter:
return true
case KeyNumpadEqual:
return true
case KeyNumpadMultiply:
return true
case KeyNumpadSubtract:
return true
case KeyPageDown:
return true
case KeyPageUp:
return true
case KeyPause:
return true
case KeyPeriod:
return true
case KeyPrintScreen:
return true
case KeyQuote:
return true
case KeyScrollLock:
return true
case KeySemicolon:
return true
case KeyShift:
return true
case KeyShiftLeft:
return true
case KeyShiftRight:
return true
case KeySlash:
return true
case KeySpace:
return true
case KeyTab:
return true
default:
return false
}
}
// String returns a string representing the key.
//
// If k is an undefined key, String returns an empty string.