mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
LibWeb: Implement the Gamepad API with SDL3
This commit is contained in:
parent
50dcd8fc85
commit
74e0483ea5
Notes:
github-actions[bot]
2025-09-01 19:11:57 +00:00
Author: https://github.com/Lubrsi
Commit: 74e0483ea5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5902
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/trflynn89
36 changed files with 1848 additions and 50 deletions
|
@ -41,6 +41,7 @@ void Navigator::initialize(JS::Realm& realm)
|
|||
{
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(Navigator);
|
||||
Base::initialize(realm);
|
||||
NavigatorGamepadPartial::check_for_connected_gamepads();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-pdfviewerenabled
|
||||
|
@ -65,6 +66,7 @@ bool Navigator::webdriver() const
|
|||
void Navigator::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
NavigatorGamepadPartial::visit_edges(visitor);
|
||||
visitor.visit(m_mime_type_array);
|
||||
visitor.visit(m_plugin_array);
|
||||
visitor.visit(m_clipboard);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue