Subversion Repositories group.electronics

Rev

Rev 162 | Rev 170 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WindowsInput;

namespace nitdcscore {
    public class Globals {
        public static DcsBios bios { get; set; }
        public static void DcsBiosInit() {
            Globals.bios = new DcsBios();
            bios.InitUDP();
        }

        public static InputSimulator SendKey = new InputSimulator();

        public static UInt16 map_uint16(UInt16 x, UInt16 in_min, UInt16 in_max, UInt16 out_min, UInt16 out_max) {
            return (UInt16)((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min);
        }
    }
}