1
2
/**
* @fileoverview This is a class that tracks an element for user input on
This class allows you to track user input on an element, such as keypresses and mouse click/coordinates. Its fields can be modified to your liking for naming convenience. The bind() method declared at the top is necessary, but should be exported.
Example usage:
var tracker = Input.create(document.getElementById('canvas'));
Example usage:
var tracker = Input.create(document.getElementById('canvas'));
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.