This repository has been archived by the owner on Dec 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update demo.js, remove node_module from repo, add package.json
- Loading branch information
Will
committed
Mar 8, 2014
1 parent
a806558
commit 37ec5e5
Showing
67 changed files
with
58 additions
and
5,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
var Keyboard = require('./keyboard.js'); | ||
|
||
|
||
var k = new Keyboard('event2'); // 'event2' is the file corresponding to my keyboard in /dev/input/ | ||
k.on('keyup', console.log); | ||
k.on('keydown', console.log); | ||
k.on('keypress', console.log); | ||
k.on('keypress', console.log); | ||
|
||
k.on('error', console.error); // Something wrent wrong, keyboard disconnected or something | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.