XFrontPanelGetLightStates

Get the states of the front panel lights.

Syntax

HRESULT XFrontPanelGetLightStates(  
         XFrontPanelLight* lights  
)  

Parameters

lights   _Out_
Type: XFrontPanelLight*

Pointer to a value indicating the current states of the front panel lights.

Return value

Type: HRESULT

Returns S_OK if successful; otherwise, returns an error code.

Remarks

The front panel of the Xbox One X dev kit includes five lights that correspond to the five programmable buttons.

Front panel display of the Xbox One X

The lights parameter points to a XFrontPanelLight object that indicates the state of each light.

To set the states of the front panel lights, use XFrontPanelSetLightStates.

For more information, see Xbox One X: Using the front panel display (NDA topic)Authorization required.

Requirements

Header: xfrontpaneldisplay.h

Library: xfrontpaneldisplay.lib

Supported platforms: Xbox One family consoles and Xbox Series consoles

See also

XFrontPanelDisplay