CanvasGame.Controls: Bind pressed keys to callback handler functions

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 196 All time: 254 This week: 3Up
Version License JavaScript version Categories
canvas-game-controls 1.0GNU General Publi...1.8.5Events
Description 

Author

This object can bind pressed keys to callback handler functions.

It takes a list of names of keys and associated callback handler functions.

The object will call the handler functions when the associated keys are pressed or released.

Picture of Martin Barker
  Performance   Level  
Name: Martin Barker <contact>
Classes: 10 packages by
Country: United Kingdom
Age: 34
All time rank: 201 in United Kingdom
Week rank: 6 Up1 in United Kingdom Equal
Innovation award
Innovation award
Nominee: 6x

Winner: 4x

  Files folder image Files  
File Role Description
Plain text file CanvasGame.Controls.js Class The Object that has the methods required to add controls
Accessible without login Plain text file Example.js Example this shows how you can use the object to easily bind events to key strokes

 Version Control Unique User Downloads Download Rankings  
 0%
Total:196
This week:0
All time:254
This week:3Up