Ejemplo n.º 1
0
 public Keyboard()
 {
     keyboardState = new KeyboardState();
     Device.RegisterDevice(UsagePage.Generic, UsageId.Keyboard, DeviceFlags.None);
     Device.KeyboardInput += new EventHandler <KeyboardInputEventArgs>(ReadKeyInput);
 }
Ejemplo n.º 2
0
 public Mouse()
 {
     _mouseState = new MouseState();
     Device.RegisterDevice(UsagePage.Generic, UsageId.Mouse, DeviceFlags.None);
     Device.MouseInput += new EventHandler <MouseInputEventArgs>(ReadMouseInput);
 }