Exemplo n.º 1
0
            // --------------------
            public void CheckRigState(InputRig rig)
            {
                this.availableInRig    = false;
                this.availableOnMobile = false;

                if (rig == null)
                {
                    return;
                }

                switch (this.callType)
                {
                case CallType.Button:
                case CallType.Axis:
                    this.availableInRig    = rig.IsAxisDefined(this.strParam, ref this.rigAxisId);
                    this.availableOnMobile = rig.IsAxisAvailableOnMobile(this.strParam);
                    break;

                case CallType.Key:
                    this.availableInRig    = true;
                    this.availableOnMobile = rig.IsKeyAvailableOnMobile(this.keyParam);
                    break;

                case CallType.Touch:
                    this.availableInRig        =
                        this.availableOnMobile = rig.IsTouchEmulatedOnMobile();
                    break;

                case CallType.MousePosition:
                    this.availableInRig        =
                        this.availableOnMobile = rig.IsMousePositionEmulatedOnMobile();
                    break;

                case CallType.ScrollWheel:
                    this.availableInRig    = true;
                    this.availableOnMobile = rig.IsScrollWheelEmulatedOnMobile();
                    break;
                }
            }