mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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
@@ -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