Beispiel #1
0
        public static void SetOutputValue(OutAxis axis, string hardwareInputCode)
        {
            hardwareInputCode = UnaliasCode(hardwareInputCode);
            int value = SuperVJoy.GetInputValue(hardwareInputCode);

            SetOutputValue(axis, value);
        }
Beispiel #2
0
        // Setter
        public static void SetOutputValue(OutAxis axis, int value)
        {
            if (value > MAX_RANGE - 1)
            {
                value = MAX_RANGE - 1;
            }
            if (value < 0)
            {
                value = 0;
            }

            if (plzOutputToDebugFrm)
            {
                debugFrmCurvedAxis[axis.ToString()] = (int)(100.0 * value / MAX_RANGE);
            }

            value = SuperVJoy.ApplyCurve(axis, value);

            vjoy.setAxisPerc(100.0 * value / MAX_RANGE, (int)axis);
        }