public SpaceNavigator() { try { _device = new Device(); _sensor = _device.Sensor; _sensor.SensorInput += OnSensorInput; // keyboard.KeyDown += keyboard_KeyDown; // keyboard.KeyUp += keyboard_KeyUp; // Associate a configuration with this _device' _device.LoadPreferences("csMonitor"); _device.Connect(); } catch (COMException e) { Console.WriteLine("{0} Caught exception #1.", e); throw e; } }