mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Bonk
This commit is contained in:
parent
79457d2b62
commit
42bb581cc1
1 changed files with 2 additions and 1 deletions
|
@ -120,6 +120,7 @@ void MainWindow::emuThreadMainLoop() {
|
||||||
|
|
||||||
emu->runFrame();
|
emu->runFrame();
|
||||||
pollControllers();
|
pollControllers();
|
||||||
|
|
||||||
if (emu->romType != ROMType::None) {
|
if (emu->romType != ROMType::None) {
|
||||||
emu->getServiceManager().getHID().updateInputs(emu->getTicks());
|
emu->getServiceManager().getHID().updateInputs(emu->getTicks());
|
||||||
}
|
}
|
||||||
|
@ -459,8 +460,8 @@ void MainWindow::pollControllers() {
|
||||||
|
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
while (SDL_PollEvent(&event)) {
|
while (SDL_PollEvent(&event)) {
|
||||||
using namespace HID;
|
|
||||||
HIDService& hid = emu->getServiceManager().getHID();
|
HIDService& hid = emu->getServiceManager().getHID();
|
||||||
|
using namespace HID;
|
||||||
|
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
case SDL_CONTROLLERDEVICEADDED:
|
case SDL_CONTROLLERDEVICEADDED:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue