Always enable virtual joystick
Keeps 'toggle fullscreen' as a separate game setting.
This commit is contained in:
parent
340caaff32
commit
633bdfcaff
4 changed files with 15 additions and 26 deletions
|
@ -10,7 +10,7 @@ const videoQualityKey = 'videoQuality';
|
|||
const audioPlayerVolumeKey = 'audioVolume';
|
||||
const audioPlayerMuteKey = 'audioMute';
|
||||
const helpCameraSettingsShown = 'helpCameraSettingsShown';
|
||||
const joystickKey = 'showJoystick';
|
||||
const fullscreenKey = 'fullscreen';
|
||||
|
||||
class LocalUserStore {
|
||||
saveUser(localUser: LocalUser) {
|
||||
|
@ -102,11 +102,11 @@ class LocalUserStore {
|
|||
return localStorage.getItem(helpCameraSettingsShown) === '1';
|
||||
}
|
||||
|
||||
setJoystick(value: boolean): void {
|
||||
localStorage.setItem(joystickKey, value.toString());
|
||||
setFullscreen(value: boolean): void {
|
||||
localStorage.setItem(fullscreenKey, value.toString());
|
||||
}
|
||||
getJoystick(): boolean {
|
||||
return localStorage.getItem(joystickKey) === 'true';
|
||||
getFullscreen(): boolean {
|
||||
return localStorage.getItem(fullscreenKey) === 'true';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue