Commit 86a53d6c authored by Cody Ede (cme527)'s avatar Cody Ede (cme527)
Browse files

All Keys Working

parent cad0d55d
......@@ -280,77 +280,85 @@ KeyboardManager.prototype.tick = function() {
_zKeydown.state = false;
}
// if(kd.1.isDown() && _1Keydown.state == false && this._SHIFTKeydown == true){
// _1Keydown.state = true;
// console.log('Shift + 1');
// }
// if (!kd.1.isDown() && _1Keydown.state == true ){
// _1Keydown.state = false;
// }
// if(kd.2.isDown() && _2Keydown.state == false && this._SHIFTKeydown == true){
// _2Keydown.state = true;
// console.log('Shift + 2');
// }
// if (!kd.2.isDown() && _2Keydown.state == true ){
// _aKeydown.state = false;
// }
// if(kd.3.isDown() && _3Keydown.state == false && this._SHIFTKeydown == true){
// _3Keydown.state = true;
// console.log('Shift + 3');
// }
// if (!kd.3.isDown() && _3Keydown.state == true ){
// _3Keydown.state = false;
// }
// if(kd.4.isDown() && _4Keydown.state == false && this._SHIFTKeydown == true){
// _4Keydown.state = true;
// console.log('Shift + 4');
// }
// if (!kd.4.isDown() && _4Keydown.state == true ){
// _4Keydown.state = false;
// }
// if(kd.5.isDown() && _5Keydown.state == false && this._SHIFTKeydown == true){
// _5Keydown.state = true;
// console.log('Shift + 5');
// }
// if (!kd.5.isDown() && _5Keydown.state == true ){
// _5Keydown.state = false;
// }
// if(kd.6.isDown() && _6Keydown.state == false && this._SHIFTKeydown == true){
// _6Keydown.state = true;
// console.log('Shift + 6');
// }
// if (!kd.6.isDown() && _6Keydown.state == true ){
// _6Keydown.state = false;
// }
// if(kd.7.isDown() && _7Keydown.state == false && this._SHIFTKeydown == true){
// _7Keydown.state = true;
// console.log('Shift + 7');
// }
// if (!kd.8.isDown() && _8Keydown.state == true ){
// _8Keydown.state = false;
// }
// if(kd.9.isDown() && _9Keydown.state == false && this._SHIFTKeydown == true){
// _9Keydown.state = true;
// console.log('Shift + 9');
// }
// if (!kd.9.isDown() && _9Keydown.state == true ){
// _9Keydown.state = false;
// }
// if(kd.0.isDown() && _0Keydown.state == false && this._SHIFTKeydown == true){
// _0Keydown.state = true;
// console.log('Shift + 0');
// }
// if (!kd.0.isDown() && _0Keydown.state == true ){
// _0Keydown.state = false;
// }
if(kd.ONE.isDown() && _1Keydown.state == false && this._SHIFTKeydown == true){
_1Keydown.state = true;
console.log('Shift + 1');
}
if (!kd.ONE.isDown() && _1Keydown.state == true ){
_1Keydown.state = false;
}
if(kd.TWO.isDown() && _2Keydown.state == false && this._SHIFTKeydown == true){
_2Keydown.state = true;
console.log('Shift + 2');
}
if (!kd.TWO.isDown() && _2Keydown.state == true ){
_aKeydown.state = false;
}
if(kd.THREE.isDown() && _3Keydown.state == false && this._SHIFTKeydown == true){
_3Keydown.state = true;
console.log('Shift + 3');
}
if (!kd.THREE.isDown() && _3Keydown.state == true ){
_3Keydown.state = false;
}
if(kd.FOUR.isDown() && _4Keydown.state == false && this._SHIFTKeydown == true){
_4Keydown.state = true;
console.log('Shift + 4');
}
if (!kd.FOUR.isDown() && _4Keydown.state == true ){
_4Keydown.state = false;
}
if(kd.FIVE.isDown() && _5Keydown.state == false && this._SHIFTKeydown == true){
_5Keydown.state = true;
console.log('Shift + 5');
}
if (!kd.FIVE.isDown() && _5Keydown.state == true ){
_5Keydown.state = false;
}
if(kd.SIX.isDown() && _6Keydown.state == false && this._SHIFTKeydown == true){
_6Keydown.state = true;
console.log('Shift + 6');
}
if (!kd.SIX.isDown() && _6Keydown.state == true ){
_6Keydown.state = false;
}
if(kd.SEVEN.isDown() && _7Keydown.state == false && this._SHIFTKeydown == true){
_7Keydown.state = true;
console.log('Shift + 7');
}
if (!kd.SEVEN.isDown() && _7Keydown.state == true ){
_7Keydown.state = false;
}
if(kd.EIGHT.isDown() && _8Keydown.state == false && this._SHIFTKeydown == true){
_8Keydown.state = true;
console.log('Shift + 8');
}
if (!kd.EIGHT.isDown() && _8Keydown.state == true ){
_8Keydown.state = false;
}
if(kd.NINE.isDown() && _9Keydown.state == false && this._SHIFTKeydown == true){
_9Keydown.state = true;
console.log('Shift + 9');
}
if (!kd.NINE.isDown() && _9Keydown.state == true ){
_9Keydown.state = false;
}
if(kd.ZERO.isDown() && _0Keydown.state == false && this._SHIFTKeydown == true){
_0Keydown.state = true;
console.log('Shift + 0');
}
if (!kd.ZERO.isDown() && _0Keydown.state == true ){
_0Keydown.state = false;
}
......
......@@ -16,11 +16,10 @@
"dependencies": {
"async": "^0.9.0",
"browserify": "^8.1.1",
"canvas": "^1.2.2",
"ejs": "^2.2.4",
"express": "^4.11.1",
"jquery": "^2.1.3",
"keydrown": "^1.1.2",
"keydrown": "git://github.com/Codyeed/keydrown.git",
"lodash": "^2.4.1",
"moment": "^2.9.0",
"morgan": "^1.5.1",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment