mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
ControlMapper: Support multiple listeners
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user