diff options
author | Arisotura <thetotalworm@gmail.com> | 2023-11-04 19:42:36 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2023-11-04 19:42:36 +0100 |
commit | 54ebf1b1b2bc3e23e24e55ce163d2071780ab562 (patch) | |
tree | 6cf45413faf015f8eeb1d70558b7ddc360117d60 /src/frontend/qt_sdl/main.cpp | |
parent | 7837c169a15db672451a3f80ac17e3e7291d95c5 (diff) |
convert DSi I2C and camera
Diffstat (limited to 'src/frontend/qt_sdl/main.cpp')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 700caea..e96bb4b 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -90,8 +90,9 @@ #include "Platform.h" #include "LocalMP.h" #include "Config.h" -#include "DSi_I2C.h" #include "RTC.h" +#include "DSi.h" +#include "DSi_I2C.h" #include "Savestate.h" @@ -409,33 +410,33 @@ void EmuThread::run() // Handle power button if (Input::HotkeyDown(HK_PowerButton)) { - DSi_BPTWL::SetPowerButtonHeld(currentTime); + DSi::I2C->GetBPTWL()->SetPowerButtonHeld(currentTime); } else if (Input::HotkeyReleased(HK_PowerButton)) { - DSi_BPTWL::SetPowerButtonReleased(currentTime); + DSi::I2C->GetBPTWL()->SetPowerButtonReleased(currentTime); } // Handle volume buttons if (Input::HotkeyDown(HK_VolumeUp)) { - DSi_BPTWL::SetVolumeSwitchHeld(DSi_BPTWL::volumeKey_Up); + DSi::I2C->GetBPTWL()->SetVolumeSwitchHeld(DSi::I2C->GetBPTWL()->volumeKey_Up); } else if (Input::HotkeyReleased(HK_VolumeUp)) { - DSi_BPTWL::SetVolumeSwitchReleased(DSi_BPTWL::volumeKey_Up); + DSi::I2C->GetBPTWL()->SetVolumeSwitchReleased(DSi::I2C->GetBPTWL()->volumeKey_Up); } if (Input::HotkeyDown(HK_VolumeDown)) { - DSi_BPTWL::SetVolumeSwitchHeld(DSi_BPTWL::volumeKey_Down); + DSi::I2C->GetBPTWL()->SetVolumeSwitchHeld(DSi::I2C->GetBPTWL()->volumeKey_Down); } else if (Input::HotkeyReleased(HK_VolumeDown)) { - DSi_BPTWL::SetVolumeSwitchReleased(DSi_BPTWL::volumeKey_Down); + DSi::I2C->GetBPTWL()->SetVolumeSwitchReleased(DSi::I2C->GetBPTWL()->volumeKey_Down); } - DSi_BPTWL::ProcessVolumeSwitchInput(currentTime); + DSi::I2C->GetBPTWL()->ProcessVolumeSwitchInput(currentTime); } if (EmuRunning == emuStatus_Running || EmuRunning == emuStatus_FrameStep) @@ -562,7 +563,7 @@ void EmuThread::run() if (Config::DSiVolumeSync && NDS::ConsoleType == 1) { - u8 volumeLevel = DSi_BPTWL::GetVolumeLevel(); + u8 volumeLevel = DSi::I2C->GetBPTWL()->GetVolumeLevel(); if (volumeLevel != dsiVolumeLevel) { dsiVolumeLevel = volumeLevel; |