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(); }
public void SetupPseudoDriver(HIDKBDPseudoDriver driver) { PseudoDriver = driver; PseudoDriver.KeyEvent += KeyEventHandler; NumLockKeyProcess.ChangeMapEvent += ChangeMap; }