Skip to content
Snippets Groups Projects
Commit 0682c5b4 authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #fe toggle keyboard on mobile

parent 36bb13e5
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,7 @@ export default class FightScene extends Phaser.Scene {
color: "#ffffff",
});
this.typewriter = new Typewriter();
this.typewriter.setHidden(this.game.device.os.desktop);
this.typewriter.onSubmit = (inputStatus) => {
if (inputStatus.began_at === null) return;
if (inputStatus.ended_at === null) return;
......
......@@ -138,6 +138,10 @@ class Typewriter {
final: "",
};
}
setHidden(hidden: boolean) {
this.keyboard.keyboardDOM.hidden = hidden;
}
}
export default Typewriter;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment