Merge pull request #6993 from brad1111/uwp-xbox-controller-fix

Use keycodes for UWP controller instead of gamepadtokey.
This commit is contained in:
Bill Thornton
2025-07-11 14:31:30 -04:00
committed by GitHub
6 changed files with 68 additions and 8 deletions
+1 -1
View File
@@ -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>
+2
View File
@@ -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();