1 /** 2 * @class unicodeListener 3 * @description 4 * An object to listen for typed characters. See {@link sandboxe.input.unicodeListener.create} to instantiate 5 * and enable it. </br></br> 6 * 7 * unicodeListener allows you to set up more detailed specific behavior as soon 8 * as an input even is recorded for a frame, allowing you to avoid the classic 9 * "query input every frame pattern". </br></br> 10 * 11 12 13 14 15 * 16 */ 17 function unicodeListener() { 18 19 /** 20 * The user function to call when a new character is pressed / activated. 21 * @type {Function} 22 */ 23 this.onNewUnicode = {}; 24 25 /** 26 * Removes the button listener from sandboxe. 27 */ 28 this.remove = function(){}; 29 30 31 32 return this; 33 }