Beispiel #1
0
        void _UpdateThumbSticks(DirectInputThumbSticks thumbSticks)
        {
            thumbSticks.Refresh();

#if DEBUG
            if (thumbSticks.HasLeft)
            {
                _UpdateThumbStick(thumbSticks.Left, ThumbStickGauge_Left, thumbSticks.RawPositions[0]);
            }

            if (thumbSticks.HasRight)
            {
                _UpdateThumbStick(thumbSticks.Right, ThumbStickGauge_Right, thumbSticks.RawPositions[1]);
            }

            if (thumbSticks.HasThird)
            {
                _UpdateThumbStick(thumbSticks.Third, ThumbStickGauge_Third, thumbSticks.RawPositions[2]);
            }
#else
            if (thumbSticks.HasLeft)
            {
                _UpdateThumbStick(thumbSticks.Left, ThumbStickGauge_Left);
            }

            if (thumbSticks.HasRight)
            {
                _UpdateThumbStick(thumbSticks.Right, ThumbStickGauge_Right);
            }

            if (thumbSticks.HasThird)
            {
                _UpdateThumbStick(thumbSticks.Third, ThumbStickGauge_Third);
            }
#endif
        }