예제 #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;
 }