Skip to content

hughsk/key-pressed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

key-pressed experimental

A simple browserify module for telling whether or not a given key has been pressed down.

Usage

NPM

pressed(name)

Given a key's name, check if that key is currently being pressed down and return either true or false accordingly.

For most keyboard characters you can simply pass their uppercase equivalent, and the remaining special characters are listed in vkey.

License

MIT. See LICENSE.md for details.

About

A simple browserify module for telling whether or not a given key has been pressed down.

Resources

License

Stars

Watchers

Forks

Packages

No packages published