CanvasGame.Controls: Bind pressed keys to callback handler functions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-06-25 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 194 All time: 223 This week: 22Up
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: 8 packages by
Country: United Kingdom United Kingdom
Age: 26
All time rank: 241 in United Kingdom United Kingdom
Week rank: 48 Down2 in United Kingdom United Kingdom Down
Innovation award
Innovation award
Nominee: 4x

Winner: 2x

  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:194All time:223
 This week:0This week:22Up