mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-22 15:57:15 +08:00
examples/windowsize: bug fix: P key didn't work
This commit is contained in:
@@ -311,6 +311,7 @@ func (g *game) Update() error {
|
||||
}
|
||||
ctx.Checkbox(&mousePassthrough, "").On(updateMousePassthrough)
|
||||
if inpututil.IsKeyJustPressed(ebiten.KeyP) {
|
||||
mousePassthrough = !mousePassthrough
|
||||
updateMousePassthrough()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user