Indicates whether the view button is pressed.
public:
property bool IsViewPressed {
bool get ();
}
Type: bool
True if the button is pressed; false otherwise.
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.
}
}
}
Namespace: Windows.Xbox.Input
Metadata: windows.winmd