Example #1
0
        private UnityEngine.InputSystem.Controls.DeltaControl Initialize_ctrlMousescroll(InternedString kDeltaLayout, InputControl parent)
        {
            var ctrlMousescroll = new UnityEngine.InputSystem.Controls.DeltaControl();

            ctrlMousescroll.Setup()
            .At(this, 2)
            .WithParent(parent)
            .WithChildren(21, 6)
            .WithName("scroll")
            .WithDisplayName("Scroll")
            .WithLayout(kDeltaLayout)
            .WithStateBlock(new InputStateBlock
            {
                format     = new FourCC(1447379762),
                byteOffset = 16,
                bitOffset  = 0,
                sizeInBits = 64
            })
            .Finish();
            return(ctrlMousescroll);
        }
Example #2
0
        private UnityEngine.InputSystem.Controls.DeltaControl Initialize_ctrlMousedelta(InternedString kDeltaLayout, InputControl parent)
        {
            var ctrlMousedelta = new UnityEngine.InputSystem.Controls.DeltaControl();

            ctrlMousedelta.Setup()
            .At(this, 1)
            .WithParent(parent)
            .WithChildren(15, 6)
            .WithName("delta")
            .WithDisplayName("Delta")
            .WithLayout(kDeltaLayout)
            .WithUsages(1, 1)
            .WithStateBlock(new InputStateBlock
            {
                format     = new FourCC(1447379762),
                byteOffset = 8,
                bitOffset  = 0,
                sizeInBits = 64
            })
            .Finish();
            return(ctrlMousedelta);
        }