25 lines
491 B
C++
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);
|
|
|
|
}
|