IXboxFrontPanelControl::GetButtonStates Method

Gets the current state of the front panel buttons on an Xbox One X dev kit.

Syntax

public:
HRESULT GetButtonStates(
         XBOX_FRONT_PANEL_BUTTONS *buttons
)  

Parameters

buttons
Type: XBOX_FRONT_PANEL_BUTTONS *

[out] Pointer to a value indicating the current state of the front panel buttons. See the XBOX_FRONT_PANEL_BUTTONS topic for valid values.

Return value

Type: HRESULT 

Returns S_OK if successful, or an error code otherwise.

Remarks

This method must be polled periodically to retrieve state changes for buttons.

Requirements

Header: Declared in xboxfrontpanel.h.

Library: Use xboxfrontpanel.lib.

See also

XBOX_FRONT_PANEL_BUTTONS Enumeration