Browse code

use F11 for fullscreen

devnewton authored on 08/11/2016 12:16:18
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@ export abstract class AbstractState extends Phaser.State {
6 6
     }
7 7
 
8 8
     create() {
9
-        this.game.input.keyboard.addKey(Phaser.Keyboard.F).onDown.add(() => this.toggleFullscreen());
9
+        this.game.input.keyboard.addKey(Phaser.Keyboard.F11).onDown.add(() => this.toggleFullscreen());
10 10
     }
11 11
 
12 12
     toggleFullscreen() {