examples/windowsize: add -passthrough

Updates #3222
This commit is contained in:
Hajime Hoshi
2025-04-05 05:01:42 +09:00
parent 0b6b08fc44
commit f345eb34b5
+4
View File
@@ -40,6 +40,7 @@ var (
flagWindowPosition = flag.String("windowposition", "", "window position (e.g., 100,200)")
flagTransparent = flag.Bool("transparent", false, "screen transparent")
flagFloating = flag.Bool("floating", false, "make the window floating")
flagPassthrough = flag.Bool("passthrough", false, "make the window mouse passthrough")
flagMaximize = flag.Bool("maximize", false, "maximize the window")
flagVsync = flag.Bool("vsync", true, "enable vsync")
flagInitFocused = flag.Bool("initfocused", true, "whether the window is focused on start")
@@ -496,6 +497,9 @@ func main() {
if *flagFloating {
ebiten.SetWindowFloating(true)
}
if *flagPassthrough {
ebiten.SetWindowMousePassthrough(true)
}
if *flagMaximize {
ebiten.SetWindowResizingMode(ebiten.WindowResizingModeEnabled)
ebiten.MaximizeWindow()