1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

InputManager: C++-style type definitions.

There is no need to typedef enums and structs in C++.
Put types defined by InputManager inside the class namespace.
Changed type names to CamelCase.
This commit is contained in:
Maarten ter Huurne
2011-10-23 08:57:52 +02:00
parent c6db9ff21b
commit 315bf0a180
24 changed files with 265 additions and 321 deletions

View File

@@ -64,9 +64,10 @@ void MenuSettingBool::draw(int y)
gmenu2x->s->write( gmenu2x->font, strvalue, 155, y, ASFont::HAlignLeft, ASFont::VAlignTop );
}
bool MenuSettingBool::manageInput(bevent_t *event)
bool MenuSettingBool::manageInput(InputManager::ButtonEvent *event)
{
if (event->button == ACCEPT && event->state == PRESSED) {
if (event->button == InputManager::ACCEPT
&& event->state == InputManager::PRESSED) {
toggle();
return true;
}