GamePadTests CheckGamePadIsAvailable Method Delta Engine Documentation

Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckGamePadIsAvailable()
Examples

[Test]
public void CheckGamePadIsAvailable()
{
    var gamePad = Resolve<GamePad>();
    if (gamePad is MockGamePad)
        ((MockGamePad)gamePad).SetUnavailable();
    Assert.IsFalse(gamePad.IsAvailable);
}
See Also