IArcadeStickReading.IsButtonPressed Method

Gets a Boolean value that indicates whether the button at the specified index is currently pressed.

Syntax

public:
bool IsButtonPressed(
         unsigned char buttonId
)  

Parameters

buttonId
Type: unsigned char 

  Zero-based index of the button to get the pressed state of.

Return value

Type: bool 

  Returns true if the button at the specified index is currently pressed; otherwise, false.

Requirements

Namespace: Microsoft.Xbox.Input

Metadata: microsoft.xbox.input.arcadestick.winmd

See also

Reference

IArcadeStickReading Interface

IArcadeStickReading Members

Microsoft.Xbox.Input Namespace