LibWeb: Add tests for Gamepad API by utilising virtual SDL3 joysticks

This commit is contained in:
Luke Wilde 2025-08-18 17:28:06 +01:00 committed by Andreas Kling
parent 74e0483ea5
commit 9adf27f009
Notes: github-actions[bot] 2025-09-01 19:11:51 +00:00
28 changed files with 897 additions and 0 deletions

View file

@ -1,6 +1,7 @@
#import <DOM/EventTarget.idl>
#import <HTML/HTMLElement.idl>
#import <Internals/InternalAnimationTimeline.idl>
#import <Internals/InternalGamepad.idl>
[Exposed=Nobody]
interface Internals {
@ -58,4 +59,8 @@ interface Internals {
// Returns the shadow root of the element, if it has one, even if it's not normally accessible to JS.
ShadowRoot? getShadowRoot(Element element);
undefined handleSDLInputEvents();
InternalGamepad connectVirtualGamepad();
};