Merge pull request #6993 from brad1111/uwp-xbox-controller-fix
Use keycodes for UWP controller instead of gamepadtokey.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
${Controls}
|
||||
</h2>
|
||||
|
||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||
<div class="checkboxContainer checkboxContainer-withDescription enableGamepadContainer hide">
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" class="chkEnableGamepad" />
|
||||
<span>${LabelEnableGamepad}</span>
|
||||
|
||||
@@ -3,6 +3,7 @@ import toast from '../../../components/toast/toast';
|
||||
import globalize from '../../../lib/globalize';
|
||||
import appSettings from '../../../scripts/settings/appSettings';
|
||||
import Events from '../../../utils/events.ts';
|
||||
import keyboardNavigation from 'scripts/keyboardNavigation';
|
||||
|
||||
export default function (view) {
|
||||
function submit(e) {
|
||||
@@ -19,6 +20,7 @@ export default function (view) {
|
||||
}
|
||||
|
||||
view.addEventListener('viewshow', function () {
|
||||
view.querySelector('.enableGamepadContainer').classList.toggle('hide', !keyboardNavigation.canEnableGamepad());
|
||||
view.querySelector('.smoothScrollContainer').classList.toggle('hide', !layoutManager.tv);
|
||||
|
||||
view.querySelector('.chkEnableGamepad').checked = appSettings.enableGamepad();
|
||||
|
||||
Reference in New Issue
Block a user