mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
examples/blocks: Bug fix: ESC key caused crashing
This commit is contained in:
parent
231edfbd3f
commit
b7d555e724
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user