mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add gamepad enabling/disabling
This commit is contained in:
parent
c7b05ba130
commit
7974fbcbaa
8 changed files with 90 additions and 2 deletions
|
@ -18,6 +18,19 @@ class AppSettings {
|
|||
return this.get('enableAutoLogin') !== 'false';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Enable Gamepad' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Enable Gamepad' or undefined.
|
||||
* @return {boolean} 'Enable Gamepad' state.
|
||||
*/
|
||||
enableGamepad(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('enableGamepad', val.toString());
|
||||
}
|
||||
|
||||
return this.get('enableGamepad') === 'true';
|
||||
}
|
||||
|
||||
enableSystemExternalPlayers(val) {
|
||||
if (val !== undefined) {
|
||||
this.set('enableSystemExternalPlayers', val.toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue