Keyboard


Repository| Issues

The Cylon adaptor for keyboard input.

For more info about keyboards, click here.

How to Install

Installing cylon.js with a keyboard support is pretty easy.

$ npm install cylon cylon-keyboard

How to Use

var Cylon = require('cylon');

Cylon.robot({
  connections: {
    keyboard: { adaptor: 'keyboard' }
  },

  devices: {
    keyboard: { driver: 'keyboard' }
  },

  work: function(my) {
    my.keyboard.on('a', function(key) {
      console.log("A PRESSED!");
    });
  }
}).start();

How to Connect

All that you need to do is plug the keyboard into your computer as usual.

Drivers

Available drivers for the keyboard platform are listed below.