Пример #1
0
    public void Controls_CanFindControlsInSetupByPath()
    {
        var setup = new InputDeviceBuilder("Gamepad");

        Assert.That(setup.TryGetControl("leftStick"), Is.TypeOf <StickControl>());
        Assert.That(setup.TryGetControl("leftStick/x"), Is.TypeOf <AxisControl>());
        Assert.That(setup.TryGetControl("leftStick/y"), Is.TypeOf <AxisControl>());
        Assert.That(setup.TryGetControl("leftStick/up"), Is.TypeOf <ButtonControl>());
    }