Search JavaScript code of all Worlds for: keycode
if (e.keyCode == 37) moveLogicalAgent ( ACTION_LEFT ); if (e.keyCode == 38) moveLogicalAgent ( ACTION_DOWN ); if (e.keyCode == 39) moveLogicalAgent ( ACTION_RIGHT ); if (e.keyCode == 40) moveLogicalAgent ( ACTION_UP ); if (e.keyCode == 65) moveLogicalAgent ( JUMP_LEFT );
if ( e.keyCode == leftInput ) { cursor.position.x += - objectsize ; e.preventDefault(); } // left if ( e.keyCode == rightInput ) { cursor.position.x += + objectsize ; e.preventDefault(); } // right if ( e.keyCode == forwardInput ) { cursor.position.z += - objectsize ; e.preventDefault(); } // forward if ( e.keyCode == backwardInput ) { cursor.position.z += + objectsize ; e.preventDefault(); } // back if ( e.keyCode == bottomInput ) { cursor.position.y += - objectsize ; e.preventDefault(); }
switch (event.keyCode) { switch (event.keyCode) {
if (e.keyCode == 37) moveLogicalAgent ( ACTION_LEFT ); if (e.keyCode == 38) moveLogicalAgent ( ACTION_DOWN ); if (e.keyCode == 39) moveLogicalAgent ( ACTION_RIGHT ); if (e.keyCode == 40) moveLogicalAgent ( ACTION_UP );
switch ( event.keyCode ) { switch( event.keyCode ) {
if (event.keyCode == 13){
switch ( event.keyCode ) { switch( event.keyCode ) {
up: Phaser.Input.Keyboard.KeyCodes.W, down: Phaser.Input.Keyboard.KeyCodes.S, left: Phaser.Input.Keyboard.KeyCodes.A, right: Phaser.Input.Keyboard.KeyCodes.D
var code = a.keyCode; if (e.keyCode == 37) { moveLogicalAgent ( ACTION_LEFT ); e.preventDefault(); } if (e.keyCode == 40) { moveLogicalAgent ( ACTION_DOWN ); e.preventDefault(); } if (e.keyCode == 39) { moveLogicalAgent ( ACTION_RIGHT ); e.preventDefault(); } if (e.keyCode == 38) { moveLogicalAgent ( ACTION_UP ); e.preventDefault(); }
const me = document.getElementById('me').onkeydown = function(event) { if (event.keyCode == 13) sendchat(); }; function ourKeys ( event ) { return ( KEYS.includes ( event.keyCode ) ); } if ( event.keyCode == KEY_UP ) // move a bit along angle we are facing if ( event.keyCode == KEY_LEFT ) // rotate in place if ( event.keyCode == KEY_RIGHT )
function ourKeys ( event ) { return ( OURKEYS.includes ( event.keyCode ) ); } if ( event.keyCode == 37 ) theobject.position.x = cx - objectsize ; // left if ( event.keyCode == 39 ) theobject.position.x = cx + objectsize ; // right if ( event.keyCode == 38 ) theobject.position.z = cz - objectsize ; // forward if ( event.keyCode == 40 ) theobject.position.z = cz + objectsize ; // back
if (e.keyCode == 37) moveLogicalAgent ( ACTION_LEFT ); if (e.keyCode == 38) moveLogicalAgent ( ACTION_DOWN ); if (e.keyCode == 39) moveLogicalAgent ( ACTION_RIGHT ); if (e.keyCode == 40) moveLogicalAgent ( ACTION_UP ); if (e.keyCode == 32) moveLogicalAgent ( ACTION_JUMPFORWARD); //cheat code to jump
document.getElementById('me').onkeydown = function(event) { if (event.keyCode == 13) sendchat(); };
document.getElementById('me').onkeydown = function(event) { if (event.keyCode == 13) sendchat(); };
function ourKeys(event) {return(OURKEYS.includes(event.keyCode));} if ( event.keyCode == 49 ) {selectBall(0);} else if ( event.keyCode == 50 ) {selectBall(1);} else if ( event.keyCode == 51 ) {selectBall(2);} else if ( event.keyCode == 52 ) {selectBall(3);}
if (event.keyCode == '38' || event.keyCode == '87') { else if (event.keyCode == '40' || event.keyCode == '83') { else if (event.keyCode == '37' || event.keyCode == '65') { else if (event.keyCode == '39' || event.keyCode == '68') { else if (event.keyCode == '77') {
if (e.keyCode == 37) moveLogicalAgent( ACTION_LEFT ); if (e.keyCode == 38) moveLogicalAgent( ACTION_DOWN ); if (e.keyCode == 39) moveLogicalAgent( ACTION_RIGHT ); if (e.keyCode == 40) moveLogicalAgent( ACTION_UP ); if (e.keyCode == 32) // if the keycode is space.
switch (e.keyCode){
var code = a.keyCode; if (e.keyCode == 37) { moveLogicalAgent ( ACTION_LEFT ); e.preventDefault(); } if (e.keyCode == 38) { moveLogicalAgent ( ACTION_DOWN ); e.preventDefault(); } if (e.keyCode == 39) { moveLogicalAgent ( ACTION_RIGHT ); e.preventDefault(); } if (e.keyCode == 40) { moveLogicalAgent ( ACTION_UP ); e.preventDefault(); }
if (e.keyCode == 37) moveLogicalAgent ( ACTION_LEFT ); if (e.keyCode == 38) moveLogicalAgent ( ACTION_DOWN ); if (e.keyCode == 39) moveLogicalAgent ( ACTION_RIGHT ); if (e.keyCode == 40) moveLogicalAgent ( ACTION_UP ); if (e.keyCode == 32) ai = randomintAtoB(1,gridsize-2), aj = randomintAtoB(1,gridsize-2);
if (keyCode === LEFT_ARROW) else if (keyCode === RIGHT_ARROW) if (keyCode === DOWN_ARROW && deg == 360)
var code = event.keyCode;
//it can take the values 38 to 41. The html keycode of the arrow keys goes if (e.keyCode == 37 || e.keyCode == 38 || e.keyCode == 39 || e.keyCode == 40) if (actionRequired !== undefined && e.keyCode == obstacles[actionRequired]) //by the keycode of that arrow)(70% of the time) either nothing (represented
keyboard[event.keyCode] = true; keyboard[event.keyCode] = false;
if((e.keyCode == 38) || (e.keyCode == 40)) if(e.keyCode == 37 || e.keyCode == 39) if(e.keyCode == 37 || e.keyCode == 39) switch ( event.keyCode ) { switch( event.keyCode ) {
if (e.keyCode == 37) moveLogicalAgent ( ACTION_LEFT ); //left arrow key if (e.keyCode == 38 && jump1 == false) //up arrow key if (e.keyCode == 39) moveLogicalAgent ( ACTION_RIGHT ); //right arrow key if (e.keyCode == 66) moveLogicalAgent ( ACTION_DOWN ); //"b"key if (e.keyCode == 32) //speace bar key fires bullets
switch ( event.keyCode ) { switch( event.keyCode ) {
if (e.keyCode == 37) // left if (e.keyCode == 39) // right if (e.keyCode == 38) // down if (e.keyCode == 40) // up if (e.keyCode == 97) // numpad1 is putt
if (event.keyCode === 13 && !promptSubmitBtn.disabled) { var code = e.which || e.keyCode; if (event.keyCode === 13) {
if (e.keyCode == 32) if (e.keyCode == 37) if (e.keyCode == 38) if (e.keyCode == 39) if (e.keyCode == 40)
var key = event.which || event.keyCode; // Use either which or keyCode, depending on browser support
if (event.keyCode === 13) {
function ourKeys ( event ) { return ( OURKEYS.includes ( event.keyCode ) ); } if ( event.keyCode == 37 ) moveLogicalAgent ( ACTION_LEFT ); if ( event.keyCode == 38 ) moveLogicalAgent ( ACTION_DOWN ); if ( event.keyCode == 39 ) moveLogicalAgent ( ACTION_RIGHT ); if ( event.keyCode == 40 ) moveLogicalAgent ( ACTION_UP );
// All keyboard stuff - Whats important here is the event.keyCode listeners which check for arrow keys for movement -> letter keys fo // Array with keycodes for arrow keys, so we can quickly check if the input is one of them. keyboard[event.keyCode] = true; if (arrowKeys.includes(event.keyCode)) { } else if (typeFlag === 1 && event.keyCode === 13) {
if((e.keyCode == 38) || (e.keyCode == 40)) if(e.keyCode == 37 || e.keyCode == 39) if(e.keyCode == 37 || e.keyCode == 39) switch ( event.keyCode ) { switch( event.keyCode ) {
document.getElementById('me').onkeydown = function(event) { if (event.keyCode == 13) sendchat(); };
document.getElementById('me').onkeydown = function(event) { if (event.keyCode == 13) sendchat(); };
function ourKeys ( event ) { return ( OURKEYS.includes ( event.keyCode ) ); } if ( event.keyCode == KEY_UP ) // move a bit along angle we are facing if ( event.keyCode == KEY_LEFT ) // rotate in place if ( event.keyCode == KEY_RIGHT )
return(OURKEYS.includes(event.keyCode)); if(event.keyCode == 65) socketSender(ACTION_LEFT, 1); if(event.keyCode == 87) socketSender(ACTION_DOWN, 1); if(event.keyCode == 68) socketSender(ACTION_RIGHT, 1); if(event.keyCode == 83) socketSender(ACTION_UP, 1);
if (e.keyCode == 37) if (e.keyCode == 38) if (e.keyCode == 39) if (e.keyCode == 40) if (e.keyCode == 83)