ControlMapper: Support multiple listeners

This commit is contained in:
Henrik Rydgård
2026-02-12 23:01:46 +01:00
parent a6ac956884
commit c5e257635f
4 changed files with 59 additions and 21 deletions
+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) {