Fix: korean_key_mapper bug

This commit is contained in:
2018-06-15 11:24:58 +09:00
parent eb497f59c8
commit 8a26bbdf54
2 changed files with 5 additions and 14 deletions
+1 -10
View File
@@ -52,12 +52,11 @@ class TypingPractice {
let keyMapper = null;
if(sessionStorageManager.playingAppName.substring("korean") > 0)
if(sessionStorageManager.playingAppName.indexOf("korean") > 0)
keyMapper = new KoreanKeyMapper();
else
keyMapper = new EnglishKeyMapper();
// let keyButton = new KeyButton(100, 400, 100, "A", "align_type");
new Keyboard(keyMapper);
@@ -86,18 +85,10 @@ class TypingPractice {
screenBottom.printBottomRightText(sessionStorageManager.playerName);
// game.input.keyboard.addCallbacks(this, null, null, this.keyPress);
// this.startGame();
// this.countDown();
}
keyPress(char) {
// self.checkTypingContents(event);
console.log(char);
if(game.input.keyboard.isDown(Phaser.Keyboard.SHIFT))
console.log("shift is pressed");
}
startGame() {
this.showTypingPracticeContents();
this.showPlayingWordNumber();