mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 17:20:56 -10:00
20 lines
288 B
C++
20 lines
288 B
C++
#pragma once
|
|
|
|
#include <SDL.h>
|
|
|
|
#include "controls/controller.h"
|
|
|
|
namespace devilution {
|
|
|
|
inline int PollEvent(SDL_Event *event)
|
|
{
|
|
int result = SDL_PollEvent(event);
|
|
if (result != 0) {
|
|
UnlockControllerState(*event);
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
} // namespace devilution
|