megalanthusdefold-gamepush
megalanthus/defold-gamepush/gamepush.core.fullscreen
GamePush fullscreen: enter, leave and toggle it, with their events.
- GitHub: megalanthus/defold-gamepush — pinned to
v1.4.1- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as core_fullscreen from "gamepush.core.fullscreen"
- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
Functions
open()
Enters fullscreen.
close()
Leaves fullscreen.
toggle()
Toggles fullscreen.
Variables
callbacks: FullscreenCallbacks
The event handlers.
Types
FullscreenCallbacks
FullscreenCallbacks.open?: () => void
The game entered fullscreen.
FullscreenCallbacks.close?: () => void
The game left fullscreen.
FullscreenCallbacks.change?: () => void
Fullscreen was toggled.