Skip to main content

XGameUiSetUiCallbacks

Sets the UI callbacks defined by the developer.

Syntax

Parameters

callbacks
Type: const XGameUiUiCallbacks*
Pointer to the struct containing the handlers and contexts for each UI the developer would like to handle. useSystemUiIfAvailable
Type: bool
Whether system UI should be used instead of developer callbacks if available.

Return value

Type: STDAPI

Remarks

All callbacks are set at the same time and override whatever ones may have been previously set.

Requirements

Header: XGameUi.h Supported platforms: Supported only on Steam Deck

See also

XGameUI
XGameUiUiCallbacks
Last modified on August 4, 2026