sdl_hid: rename SDL event handler to prevent conflicts

This commit is contained in:
Hyper 2024-10-17 17:11:20 +01:00
parent 841d57649a
commit 1040baa2c1

View file

@ -135,7 +135,7 @@ inline Controller* FindController(int which)
return nullptr;
}
int OnSDLEvent(void*, SDL_Event* event)
int HID_OnSDLEvent(void*, SDL_Event* event)
{
if (event->type >= SDL_CONTROLLERAXISMOTION && event->type < SDL_FINGERDOWN)
{
@ -185,7 +185,7 @@ void hid::detail::Init()
SDL_InitSubSystem(SDL_INIT_EVENTS);
SDL_AddEventWatch(OnSDLEvent, nullptr);
SDL_AddEventWatch(HID_OnSDLEvent, nullptr);
SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER);
}