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();
@@ -4,8 +4,8 @@ class KoreanKeyMapper extends KeyMapper {
super();
this.registerKeyTextData("KeyQ", "ㅂ", "ㅃ");
this.registerKeyTextData("KeyR", "ㅈ", "ㅉ");
this.registerKeyTextData("KeyEe", "ㄷ", "ㄸ");
this.registerKeyTextData("KeyW", "ㅈ", "ㅉ");
this.registerKeyTextData("KeyE", "ㄷ", "ㄸ");
this.registerKeyTextData("KeyR", "ㄱ", "ㄲ");
this.registerKeyTextData("KeyT", "ㅅ", "ㅆ");
this.registerKeyTextData("KeyY", "ㅛ", "ㅛ");
@@ -18,10 +18,10 @@ class KoreanKeyMapper extends KeyMapper {
this.registerKeyTextData("KeyS", "ㄴ", "ㄴ");
this.registerKeyTextData("KeyD", "ㅇ", "ㅇ");
this.registerKeyTextData("KeyF", "ㄹ", "ㄹ");
this.registerKeyTextData("KeyG", "ㅎ", "ㅎ");
this.registerKeyTextData("KeyG", "ㅎ", "ㅎ");
this.registerKeyTextData("KeyH", "ㅗ", "ㅗ");
this.registerKeyTextData("KeyJ", "ㅓ", "ㅓ");
this.registerKeyTextData("KeyJ", "ㅏ", "ㅏ");
this.registerKeyTextData("KeyK", "ㅏ", "ㅏ");
this.registerKeyTextData("KeyL", "ㅣ", "ㅣ");
this.registerKeyTextData("KeyZ", "ㅋ", "ㅋ");