addEventListener Question?

For developers using the Construct 2 Javascript SDK

Post » Thu Mar 07, 2013 6:55 pm

If I place the following code after c2runtime.js in the index.html file will it override the previous code?

window.addEventListener('keyup', function(){window.plugins.ocontroller.up();}, false);
window.addEventListener('keydown', function() {window.plugins.ocontroller.down();}, false);
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest