1 decade ago by pussard
Greetings,
I can't seem to get any keyboard inputs working at all. Mouse clicks are fine, but nothing happens for any keyboard key. I've tried this in Chrome and Firefox with all addons disabled and still no dice. I change to MOUSE1 and it works. I'm running version 1.23.
I can't seem to get any keyboard inputs working at all. Mouse clicks are fine, but nothing happens for any keyboard key. I've tried this in Chrome and Firefox with all addons disabled and still no dice. I change to MOUSE1 and it works. I'm running version 1.23.
ig.module( 'game.main' ) .requires( 'impact.game', 'impact.font' ) .defines(function(){ MyGame = ig.Game.extend({ init: function() { ig.input.bind(ig.KEY.LEFT_ARROW, 'left'); }, update: function() { if (ig.input.state('left')) { console.log('left'); } this.parent(); }, draw: function() { this.parent(); } }); ig.main( '#canvas', MyGame, 60, 768, 672, 1 ); });