This commit is contained in:
wheremyfoodat 2024-03-27 20:44:12 +02:00
parent 79457d2b62
commit 42bb581cc1

View file

@ -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: