LibWeb: Implement the Gamepad API with SDL3

This commit is contained in:
Luke Wilde 2025-08-18 17:27:00 +01:00 committed by Andreas Kling
parent 50dcd8fc85
commit 74e0483ea5
Notes: github-actions[bot] 2025-09-01 19:11:57 +00:00
36 changed files with 1848 additions and 50 deletions

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
namespace Web::Gamepad::EventNames {
#define ENUMERATE_GAMEPAD_EVENTS \
__ENUMERATE_GAMEPAD_EVENT(gamepadconnected) \
__ENUMERATE_GAMEPAD_EVENT(gamepaddisconnected)
#define __ENUMERATE_GAMEPAD_EVENT(name) extern FlyString name;
ENUMERATE_GAMEPAD_EVENTS
#undef __ENUMERATE_GAMEPAD_EVENT
}