mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +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
21
Libraries/LibWeb/Gamepad/EventNames.h
Normal file
21
Libraries/LibWeb/Gamepad/EventNames.h
Normal 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
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue