Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            this.device             = new DeviceListener();
            device.KeyboardKeyDown += this.Device_KeyboardKeyDown;
            device.StartListen();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            DeviceListener deviceListener = new DeviceListener();

            deviceListener.StartListen();
            deviceListener.MouseAction    += OnMouseAction;
            deviceListener.KeyboardAction += OnKeyboardAction;

            Console.ReadLine();
            deviceListener.StopListen();
        }