Introduce game controller db
This commit is contained in:
@@ -14,6 +14,10 @@ EmuThread::EmuThread(std::unique_ptr<QtInstanceFactory>&& instance_, std::unique
|
|||||||
SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER);
|
SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER);
|
||||||
bool controllerConnected = false;
|
bool controllerConnected = false;
|
||||||
|
|
||||||
|
if(SDL_GameControllerAddMappingsFromFile("resources/gamecontrollerdb.txt") < 0) {
|
||||||
|
Util::warn("[SDL] Could not load game controller DB");
|
||||||
|
}
|
||||||
|
|
||||||
auto pollEvents = [&]() {
|
auto pollEvents = [&]() {
|
||||||
SDL_Event e;
|
SDL_Event e;
|
||||||
while(SDL_PollEvent(&e)) {
|
while(SDL_PollEvent(&e)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user