UI: Show custom speed toggle buttons.

This allows more flexibility if unthrottle is too fast or too uneven.
This commit is contained in:
Unknown W. Brackets committed 2018-06-23 10:59:18 -07:00
1 parent 69dd59d9b9
commit f2956a1c1a
6 files changed
+79 -7

No files matched your search

+12
View File
@@ -396,6 +396,18 @@ void TouchControlLayoutScreen::CreateViews() {
controls_.push_back(unthrottle);
}
if (g_Config.touchSpeed1Key.show) {
DragDropButton *speed1 = new DragDropButton(g_Config.touchSpeed1Key, rectImage, I_ARROW);
speed1->SetAngle(170.0f, 180.0f);
controls_.push_back(speed1);
}
if (g_Config.touchSpeed2Key.show) {
DragDropButton *speed2 = new DragDropButton(g_Config.touchSpeed2Key, rectImage, I_ARROW);
speed2->SetAngle(190.0f, 180.0f);
controls_.push_back(speed2);
}
if (g_Config.touchLKey.show) {
controls_.push_back(new DragDropButton(g_Config.touchLKey, shoulderImage, I_L));
}