diff --git a/src/panda_qt/main_window.cpp b/src/panda_qt/main_window.cpp index ad60b55b..a4fc20f0 100644 --- a/src/panda_qt/main_window.cpp +++ b/src/panda_qt/main_window.cpp @@ -120,6 +120,7 @@ void MainWindow::emuThreadMainLoop() { emu->runFrame(); pollControllers(); + if (emu->romType != ROMType::None) { emu->getServiceManager().getHID().updateInputs(emu->getTicks()); } @@ -459,8 +460,8 @@ void MainWindow::pollControllers() { SDL_Event event; while (SDL_PollEvent(&event)) { - using namespace HID; HIDService& hid = emu->getServiceManager().getHID(); + using namespace HID; switch (event.type) { case SDL_CONTROLLERDEVICEADDED: