moonlight-qt/app/streaming/input/sdlinputsubsystems.h
Joey Yakimowich-Payne d174341b6d
Some checks are pending
Build / setup (push) Waiting to run
Build / build-appimage (push) Blocked by required conditions
Build / build-steamlink (push) Blocked by required conditions
Build / build-windows-macos (push) Blocked by required conditions
Centralize SDL input subsystem ownership for hotplug recovery
2026-02-12 07:57:41 -07:00

25 lines
491 B
C++

#pragma once
#include "SDL_compat.h"
namespace SdlInputSubsystems {
struct LeaseOptions {
bool joystick;
bool gameController;
#if !SDL_VERSION_ATLEAST(2, 0, 9)
bool haptic;
#endif
bool applyMappings;
bool flushControllerDeviceEvents;
};
bool acquire(const char* ownerTag, const LeaseOptions& options);
void release(const char* ownerTag, const LeaseOptions& options);
bool hasExclusiveGamepadOwnership();
bool reenumerateGamepadSubsystems(const char* ownerTag);
}