mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
SettingsDialog: simplify code using InputManager::waitForPressedButton().
Replaced MenuSetting::manageInput() by handleButtonPress(), because we will only pass pressed buttons to it, not the entire input event.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
class MenuSettingMultiString : public MenuSettingStringBase {
|
||||
private:
|
||||
virtual void edit() {
|
||||
/* never called because manageInput() is overridden */
|
||||
/* never called because handleButtonPress() is overridden */
|
||||
}
|
||||
|
||||
const std::vector<std::string> *choices;
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
const std::vector<std::string> *choices);
|
||||
virtual ~MenuSettingMultiString() {};
|
||||
|
||||
virtual bool manageInput(InputManager::ButtonEvent *event);
|
||||
virtual bool handleButtonPress(InputManager::Button button);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user