Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            TenkeyController controlelr = new TenkeyController();

            Form1 form = new Form1(controlelr);

            HIDKBDPseudoDriver driver = new HIDKBDPseudoDriver();

            driver.SetupUSBNotifier(form);
            driver.InitDevice();

            controlelr.SetupPseudoDriver(driver);

            Application.Run();
        }
Пример #2
0
 public void SetupPseudoDriver(HIDKBDPseudoDriver driver)
 {
     PseudoDriver                      = driver;
     PseudoDriver.KeyEvent            += KeyEventHandler;
     NumLockKeyProcess.ChangeMapEvent += ChangeMap;
 }