Example #1
0
 private void Keyboard_KeyDown(GHIElectronics.TinyCLR.Devices.UsbHost.Keyboard
                               sender, GHIElectronics.TinyCLR.Devices.UsbHost.Keyboard.KeyboardEventArgs args)
 {
     System.Diagnostics.Debug.WriteLine("Key pressed: " + ((object)args.Which).ToString());
     System.Diagnostics.Debug.WriteLine("Key pressed ASCII: " +
                                        ((object)args.ASCII).ToString());
 }
Example #2
0
        private void Keyboard_KeyUp(GHIElectronics.TinyCLR.Devices.UsbHost.Keyboard
                                    sender, GHIElectronics.TinyCLR.Devices.UsbHost.Keyboard.KeyboardEventArgs args)
        {
            Debug.WriteLine(((int)args.ASCII).ToString());
            s.TypeInCommand(args.ASCII);
            System.Diagnostics.Debug.WriteLine
                ("Key released: " + ((object)args.Which).ToString());

            System.Diagnostics.Debug.WriteLine
                ("Key released ASCII: " + ((object)args.ASCII).ToString());
        }