From b7d555e72419586488d7b9cee8caf1dce8466062 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 29 Mar 2020 02:35:58 +0900 Subject: [PATCH] examples/blocks: Bug fix: ESC key caused crashing --- examples/blocks/blocks/gamepadscene.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/blocks/blocks/gamepadscene.go b/examples/blocks/blocks/gamepadscene.go index 1bdb1cf43..cadc30662 100644 --- a/examples/blocks/blocks/gamepadscene.go +++ b/examples/blocks/blocks/gamepadscene.go @@ -38,6 +38,7 @@ func (s *GamepadScene) Update(state *GameState) error { if inpututil.IsKeyJustPressed(ebiten.KeyEscape) { state.Input.gamepadConfig.Reset() state.SceneManager.GoTo(&TitleScene{}) + return nil } if s.buttonStates == nil {