mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
[Qt] Properly update HID service
This commit is contained in:
parent
9bbaab7871
commit
b0261234a6
2 changed files with 6 additions and 0 deletions
|
@ -52,12 +52,14 @@ class Emulator {
|
||||||
// We bind gyro to right click + mouse movement
|
// We bind gyro to right click + mouse movement
|
||||||
bool holdingRightClick = false;
|
bool holdingRightClick = false;
|
||||||
|
|
||||||
|
public:
|
||||||
static constexpr u32 width = 400;
|
static constexpr u32 width = 400;
|
||||||
static constexpr u32 height = 240 * 2; // * 2 because 2 screens
|
static constexpr u32 height = 240 * 2; // * 2 because 2 screens
|
||||||
ROMType romType = ROMType::None;
|
ROMType romType = ROMType::None;
|
||||||
bool running = false; // Is the emulator running a game?
|
bool running = false; // Is the emulator running a game?
|
||||||
bool programRunning = false; // Is the emulator program itself running?
|
bool programRunning = false; // Is the emulator program itself running?
|
||||||
|
|
||||||
|
private:
|
||||||
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
|
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
|
||||||
HttpServer httpServer;
|
HttpServer httpServer;
|
||||||
friend struct HttpServer;
|
friend struct HttpServer;
|
||||||
|
|
|
@ -91,6 +91,10 @@ void MainWindow::emuThreadMainLoop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
emu->runFrame();
|
emu->runFrame();
|
||||||
|
if (emu->romType != ROMType::None) {
|
||||||
|
emu->getServiceManager().getHID().updateInputs(emu->getTicks());
|
||||||
|
}
|
||||||
|
|
||||||
swapEmuBuffer();
|
swapEmuBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue