examples/windowsize: bug fix: P key didn't work

This commit is contained in:
Hajime Hoshi
2025-04-01 00:07:32 +09:00
parent 1406b37f09
commit cbdf0c8f4b
+1
View File
@@ -311,6 +311,7 @@ func (g *game) Update() error {
}
ctx.Checkbox(&mousePassthrough, "").On(updateMousePassthrough)
if inpututil.IsKeyJustPressed(ebiten.KeyP) {
mousePassthrough = !mousePassthrough
updateMousePassthrough()
}
})