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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user