mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-22 15:57:15 +08:00
@@ -325,7 +325,9 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
|
||||
func main() {
|
||||
ebiten.SetWindowSize(screenWidth, screenHeight)
|
||||
ebiten.SetWindowTitle("Text Input (Ebitengine Demo)")
|
||||
if err := ebiten.RunGame(&Game{}); err != nil {
|
||||
op := &ebiten.RunGameOptions{}
|
||||
op.ApplePressAndHoldEnabled = true
|
||||
if err := ebiten.RunGameWithOptions(&Game{}, op); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user