Remove X11 from olcPGEX_Gamepad.h for headless mode.
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Failing after 1m55s

This commit is contained in:
AMay 2026-04-28 16:24:00 -05:00
parent e56b3bd29c
commit e04103b935

View File

@ -280,7 +280,9 @@ namespace olc {
static void enumerateGamepads();
static GamePad *openGamepad(const std::string &path);
#ifndef OLC_PGE_HEADLESS
static X11::Display *display;
#endif
static std::optional<int> inotifyFd;
constexpr static const int32_t buttonCodes[GP_BUTTON_COUNT]{BTN_X,