ControlMapper: Support multiple listeners

This commit is contained in:
Henrik Rydgård committed 2026-02-12 23:01:46 +01:00
1 parent a6ac956884
commit c5e257635f
4 files changed
+59 -21

No files matched your search

+2 -2
View File
@@ -480,11 +480,11 @@ void KeyMappingNewMouseKeyDialog::axis(const AxisInput &axis) {
}
AnalogCalibrationScreen::AnalogCalibrationScreen(const Path &gamePath) : UITwoPaneBaseDialogScreen(gamePath, TwoPaneFlags::SettingsCanScroll) {
mapper_.SetListener(this);
mapper_.AddListener(this);
}
AnalogCalibrationScreen::~AnalogCalibrationScreen() {
mapper_.SetListener(nullptr);
mapper_.RemoveListener(this);
}
void AnalogCalibrationScreen::SetPSPAnalog(int rotation, int stick, float x, float y) {