GamepadReading.IsViewPressed Property

Indicates whether the view button is pressed.

Syntax

public:
property bool IsViewPressed {
         bool get ();
}  

Property value

Type: bool 

 True if the button is pressed; false otherwise.

Remarks

The following code shows how to use this property.

void Game::Update(float totalTime, float elapsedTime)
{
    auto gamepads = Gamepad::GetGamepads();

    for ( unsigned int i = 0; i < gamepads->Size; ++i )
    {
        IGamepadReading^ reading = gamepads->GetAt(i)->GetCurrentReading();

        if ( reading->IsViewPressed )
        {
            // Add logic for button pressed.
        }
    }
}  

Requirements

Namespace: Windows.Xbox.Input

Metadata: windows.winmd

See also

Reference

GamepadReading Class

GamepadReading Members

Windows.Xbox.Input Namespace