Merge pull request #519 from Palid/patch-1
Fix CustomizeScene killing CPU
This commit is contained in:
commit
284846e8a5
@ -126,10 +126,10 @@ export class CustomizeScene extends ResizableScene {
|
|||||||
gameManager.tryResumingGame(this, EnableCameraSceneName);
|
gameManager.tryResumingGame(this, EnableCameraSceneName);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.input.keyboard.on('keydown-RIGHT', () => this.moveCursorHorizontally(1));
|
this.input.keyboard.on('keyup-RIGHT', () => this.moveCursorHorizontally(1));
|
||||||
this.input.keyboard.on('keydown-LEFT', () => this.moveCursorHorizontally(-1));
|
this.input.keyboard.on('keyup-LEFT', () => this.moveCursorHorizontally(-1));
|
||||||
this.input.keyboard.on('keydown-DOWN', () => this.moveCursorVertically(1));
|
this.input.keyboard.on('keyup-DOWN', () => this.moveCursorVertically(1));
|
||||||
this.input.keyboard.on('keydown-UP', () => this.moveCursorVertically(-1));
|
this.input.keyboard.on('keyup-UP', () => this.moveCursorVertically(-1));
|
||||||
|
|
||||||
const customCursorPosition = localUserStore.getCustomCursorPosition();
|
const customCursorPosition = localUserStore.getCustomCursorPosition();
|
||||||
if (customCursorPosition) {
|
if (customCursorPosition) {
|
||||||
|
Loading…
Reference in New Issue
Block a user