ArcadeStick.GetButtonText Method

Retrieves the text of the button at the specified index.

Syntax

public:
void GetButtonText(
         unsigned char buttonIndex,
         out char16 char1,
         out char16 char2,
         out ButtonTextLocation location,
         out uint32 color
)  

Parameters

buttonIndex
Type: unsigned char 

  Zero-based index of the button to get the text of.

char1
Type: char16 

  Returns the first character of the button text as a UTF-8 two-byte value. If the button does not have a first text character, this value is 0x00.

char2
Type: char16 

  Returns the second character of the button text as a UTF-8 two-byte value. If the button does not have a second text character, this value is 0x00.

location
Type: ButtonTextLocation 

Returns a ButtonTextLocation value that indicates the location of the text on the button.

color
Type: uint32 

  Returns the color of the button text, in the format 0xRRGGBB.

Requirements

Namespace: Microsoft.Xbox.Input

Metadata: microsoft.xbox.input.arcadestick.winmd

See also

Reference

ArcadeStick Class

ArcadeStick Members

Microsoft.Xbox.Input Namespace