Fix: korean_key_mapper bug
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user