1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 20:48:54 +03:00

Drop enum constants of unsupported button actions

This commit is contained in:
Paul Cercueil 2013-07-29 01:33:48 -04:00
parent e0109dfe55
commit 152ed5cb29
3 changed files with 1 additions and 9 deletions

View File

@ -81,10 +81,6 @@ void InputManager::readConfFile(const string &conffile) {
else if (name == "altright") button = ALTRIGHT;
else if (name == "menu") button = MENU;
else if (name == "settings") button = SETTINGS;
else if (name == "volup") button = VOLUP;
else if (name == "voldown") button = VOLDOWN;
else if (name == "power") button = POWER;
else if (name == "lock") button = LOCK;
else {
WARNING("InputManager: Ignoring unknown button name \"%s\"\n",
name.c_str());

View File

@ -40,11 +40,9 @@ public:
ACCEPT, CANCEL,
ALTLEFT, ALTRIGHT,
MENU, SETTINGS,
VOLUP, VOLDOWN,
POWER, LOCK,
REPAINT,
};
#define BUTTON_TYPE_SIZE 14
#define BUTTON_TYPE_SIZE 10
enum ButtonState { PRESSED, RELEASED };
struct ButtonEvent {

View File

@ -52,8 +52,6 @@ MessageBox::MessageBox(GMenu2X *gmenu2x, const string &text, const string &icon)
buttonLabels[InputManager::ALTRIGHT] = "r";
buttonLabels[InputManager::SETTINGS] = "start";
buttonLabels[InputManager::MENU] = "select";
buttonLabels[InputManager::VOLUP] = "vol+";
buttonLabels[InputManager::VOLDOWN] = "vol-";
}
void MessageBox::setButton(InputManager::Button button, const string &label) {