Merge BUTTON_NOFOCUS and FORM_NOFOCUS into NO_FOCUS
This commit is contained in:
@@ -34,42 +34,42 @@ CurveKeyboard::CurveKeyboard() :
|
||||
[=]() -> uint8_t {
|
||||
putEvent(EVT_VIRTUAL_KEY_UP);
|
||||
return 0;
|
||||
}, BUTTON_BACKGROUND | BUTTON_NOFOCUS);
|
||||
}, BUTTON_BACKGROUND | NO_FOCUS);
|
||||
|
||||
// down
|
||||
new TextButton(this, {LCD_W / 2 - 20, 65, 40, 40}, "\201",
|
||||
[=]() -> uint8_t {
|
||||
putEvent(EVT_VIRTUAL_KEY_DOWN);
|
||||
return 0;
|
||||
}, BUTTON_BACKGROUND | BUTTON_NOFOCUS);
|
||||
}, BUTTON_BACKGROUND | NO_FOCUS);
|
||||
|
||||
// left
|
||||
left = new TextButton(this, {LCD_W / 2 - 70, 35, 40, 40}, "\177",
|
||||
[=]() -> uint8_t {
|
||||
putEvent(EVT_VIRTUAL_KEY_LEFT);
|
||||
return 0;
|
||||
}, BUTTON_BACKGROUND | BUTTON_NOFOCUS);
|
||||
}, BUTTON_BACKGROUND | NO_FOCUS);
|
||||
|
||||
// right
|
||||
right = new TextButton(this, {LCD_W / 2 + 30, 35, 40, 40}, "\176",
|
||||
[=]() -> uint8_t {
|
||||
putEvent(EVT_VIRTUAL_KEY_RIGHT);
|
||||
return 0;
|
||||
}, BUTTON_BACKGROUND | BUTTON_NOFOCUS);
|
||||
}, BUTTON_BACKGROUND | NO_FOCUS);
|
||||
|
||||
// next
|
||||
new TextButton(this, {LCD_W / 2 + 80, 35, 60, 40}, "Next",
|
||||
[=]() -> uint8_t {
|
||||
putEvent(EVT_VIRTUAL_KEY_NEXT);
|
||||
return 0;
|
||||
}, BUTTON_BACKGROUND | BUTTON_NOFOCUS);
|
||||
}, BUTTON_BACKGROUND | NO_FOCUS);
|
||||
|
||||
// previous
|
||||
new TextButton(this, {LCD_W / 2 - 140, 35, 60, 40}, "Prev",
|
||||
[=]() -> uint8_t {
|
||||
putEvent(EVT_VIRTUAL_KEY_PREVIOUS);
|
||||
return 0;
|
||||
}, BUTTON_BACKGROUND | BUTTON_NOFOCUS);
|
||||
}, BUTTON_BACKGROUND | NO_FOCUS);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ PageHeader::PageHeader(Page * parent, uint8_t icon):
|
||||
[=]() -> uint8_t {
|
||||
parent->deleteLater();
|
||||
return 0;
|
||||
}, BUTTON_NOFOCUS)
|
||||
}, NO_FOCUS)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ TabsGroupHeader::TabsGroupHeader(TabsGroup * parent, uint8_t icon):
|
||||
[=]() -> uint8_t {
|
||||
parent->deleteLater();
|
||||
return 1;
|
||||
}, BUTTON_NOFOCUS),
|
||||
}, NO_FOCUS),
|
||||
#endif
|
||||
icon(icon),
|
||||
carousel(this, parent)
|
||||
|
||||
@@ -161,7 +161,7 @@ ViewMain::ViewMain(bool icons):
|
||||
[=]() -> uint8_t {
|
||||
openMenu();
|
||||
return 0;
|
||||
}, BUTTON_NOFOCUS);
|
||||
}, NO_FOCUS);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user