Subversion Repositories group.electronics

Rev

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

Rev Author Line No. Line
161 pfowler 1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using WindowsInput;
7
 
8
namespace nitdcscore {
9
    public class Globals {
10
        public static DcsBios bios { get; set; }
11
        public static void DcsBiosInit() {
12
            Globals.bios = new DcsBios();
13
            bios.InitUDP();
14
        }
15
 
162 pfowler 16
        public static InputSimulator SendKey = new InputSimulator();
167 pfowler 17
 
18
        public static UInt16 map_uint16(UInt16 x, UInt16 in_min, UInt16 in_max, UInt16 out_min, UInt16 out_max) {
19
            return (UInt16)((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min);
20
        }
161 pfowler 21
    }
22
}