Socket
Socket
Sign inDemoInstall

arcade_keys

Package Overview
Dependencies
0
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    arcade_keys

Front end module for arcade controls


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Arcade Keys

Arcade Keys is a module to provide keypress tracking for gameplay.

Usage


  let el = document.querySelector('canvas')

  let arcadeKeys = ArcadeKeys(el)
  
  if (arcadeKeys.isPressed('up')) {
    alert('You pressed up!')
  }

Tests

Test are written using mocha/expect and run via karma.

To run the tests:

  npm test

Keywords

FAQs

Last updated on 22 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc