mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-12-28 05:59:53 +02:00
Drop enum constants of unsupported button actions
This commit is contained in:
parent
e0109dfe55
commit
152ed5cb29
@ -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());
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user