Indicates whether left bumper is pressed.
public:
property bool IsLeftShoulderPressed {
bool get ();
}
Type: bool
True if left bumper 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->IsLeftShoulderPressed )
{
// Add logic for left bumper pressed.
}
}
}
Note
This is a cross-OS call. For more information, see Cross-OS Calls.
Namespace: Windows.Xbox.Input
Metadata: windows.winmd