Exemplo n.º 1
0
        /// <inheritdoc />
        protected override void FinishSetup()
        {
            x = GetChildControl <AxisControl>("x");
            y = GetChildControl <AxisControl>("y");

            base.FinishSetup();
        }
Exemplo n.º 2
0
        protected override void FinishSetup(InputDeviceBuilder builder)
        {
            x = builder.GetControl <AxisControl>(this, "x");
            y = builder.GetControl <AxisControl>(this, "y");

            base.FinishSetup(builder);
        }
        protected override void FinishSetup()
        {
            base.FinishSetup();

            up    = GetChildControl <AxisControl>("up");
            down  = GetChildControl <AxisControl>("down");
            left  = GetChildControl <AxisControl>("left");
            right = GetChildControl <AxisControl>("right");
        }
        protected override void FinishSetup(InputDeviceBuilder builder)
        {
            if (builder == null)
            {
                throw new System.ArgumentNullException(nameof(builder));
            }

            x = builder.GetControl <AxisControl>(this, "x");
            y = builder.GetControl <AxisControl>(this, "y");

            base.FinishSetup(builder);
        }