diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index 6b501c5f9..a31ac8a6b 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -311,6 +311,7 @@ func (g *game) Update() error { } ctx.Checkbox(&mousePassthrough, "").On(updateMousePassthrough) if inpututil.IsKeyJustPressed(ebiten.KeyP) { + mousePassthrough = !mousePassthrough updateMousePassthrough() } })