PETKA: implemented right button event in panel and map interfaces

This commit is contained in:
Andrei Prykhodko
2020-05-28 23:51:20 +03:00
parent f6e60b937b
commit b43cf23db3
4 changed files with 10 additions and 0 deletions
+4
View File
@@ -156,4 +156,8 @@ void InterfaceMap::onMouseMove(const Common::Point p) {
}
}
void InterfaceMap::onRightButtonDown(const Common::Point p) {
stop();
}
} // End of namespace Petka
+1
View File
@@ -33,6 +33,7 @@ public:
void stop() override;
void onLeftButtonDown(const Common::Point p) override;
void onRightButtonDown(const Common::Point p) override;
void onMouseMove(const Common::Point p) override;
private:
+4
View File
@@ -321,4 +321,8 @@ void InterfacePanel::applySettings() {
g_vm->syncSoundSettings();
}
void InterfacePanel::onRightButtonDown(const Common::Point p) {
stop();
}
} // End of namespace Petka
+1
View File
@@ -35,6 +35,7 @@ public:
void stop() override;
void onLeftButtonDown(const Common::Point p) override;
void onRightButtonDown(const Common::Point p) override;
void onMouseMove(const Common::Point p) override;
private: