Use keycodes for UWP xbox instead of gamepadtokey.

This commit is contained in:
Bradley Eaton
2025-06-24 13:27:19 +01:00
parent 42c71dcb97
commit a7d443ab23
6 changed files with 73 additions and 3 deletions
+6
View File
@@ -138,12 +138,18 @@ export class BookPlayer {
if (!this.loaded) return;
switch (key) {
case 'NavigationRight':
case 'GamepadDPadRight':
case 'GamepadLeftThumbRight':
case 'l':
case 'ArrowRight':
case 'Right':
e.preventDefault();
this.next();
break;
case 'NavigationLeft':
case 'GamepadDPadLeft':
case 'GamepadLeftThumbLeft':
case 'j':
case 'ArrowLeft':
case 'Left':