function HeadsUpDisplay(game, camera) { var ui = this; this.canvas = null; this.hudCanvas = null; this.hudContext = null; this.init = function(canvas) { this.canvas = canvas; }; this.handleResize = function(canvas) { } this.update = function(delta) { } this.draw = function(context) { } this.mouseMove = function(canvas, x, y) { } this.touchMove = function(canvas, x, y) { } this.mouseDown = function(canvas, button, x, y) { } this.mouseUp = function(canvas, button, x, y) { } this.touchStart = function(canvas, x, y) { }; this.touchEnd = function(canvas, x, y) { }; };