mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
ControlMapper: Support multiple listeners
This commit is contained in:
1 parent
a6ac956884
commit
c5e257635f
4 files changed
+59
-21
No files matched your search
+2
-2
@@ -162,7 +162,7 @@ void EmuScreen::SetPSPAnalog(int iInternalScreenRotation, int stick, float x, fl
|
||||
EmuScreen::EmuScreen(const Path &filename)
|
||||
: gamePath_(filename) {
|
||||
saveStateSlot_ = SaveState::GetCurrentSlot();
|
||||
controlMapper_.SetListener(this);
|
||||
controlMapper_.AddListener(this);
|
||||
|
||||
_dbg_assert_(coreState == CORE_POWERDOWN);
|
||||
|
||||
@@ -446,7 +446,7 @@ void EmuScreen::bootComplete() {
|
||||
}
|
||||
|
||||
EmuScreen::~EmuScreen() {
|
||||
controlMapper_.SetListener(nullptr);
|
||||
controlMapper_.RemoveListener(this);
|
||||
|
||||
if (imguiInited_) {
|
||||
ImGui_ImplThin3d_Shutdown();
|
||||
|
||||
Reference in new issue
Block a user