|
|
@ -342,7 +342,7 @@ void Menu::KeyboardButtonNavigation(AiL*game,vf2d menuPos){ |
|
|
|
if(navigationGroups.count(selectionButtonName)){ |
|
|
|
if(navigationGroups.count(selectionButtonName)){ |
|
|
|
Navigation nav=navigationGroups[selectionButtonName]; |
|
|
|
Navigation nav=navigationGroups[selectionButtonName]; |
|
|
|
|
|
|
|
|
|
|
|
if(game->KEY_UP.Pressed()){ |
|
|
|
if(game->KEY_UP.PressedDAS()){ |
|
|
|
SetMouseNavigation(false); |
|
|
|
SetMouseNavigation(false); |
|
|
|
if(std::holds_alternative<std::string>(nav.up)&&std::get<std::string>(nav.up).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.up))); |
|
|
|
if(std::holds_alternative<std::string>(nav.up)&&std::get<std::string>(nav.up).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.up))); |
|
|
|
else |
|
|
|
else |
|
|
@ -352,7 +352,7 @@ void Menu::KeyboardButtonNavigation(AiL*game,vf2d menuPos){ |
|
|
|
SetSelection(returnData); |
|
|
|
SetSelection(returnData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(game->KEY_DOWN.Pressed()){ |
|
|
|
if(game->KEY_DOWN.PressedDAS()){ |
|
|
|
SetMouseNavigation(false); |
|
|
|
SetMouseNavigation(false); |
|
|
|
if(std::holds_alternative<std::string>(nav.down)&&std::get<std::string>(nav.down).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.down))); |
|
|
|
if(std::holds_alternative<std::string>(nav.down)&&std::get<std::string>(nav.down).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.down))); |
|
|
|
else |
|
|
|
else |
|
|
@ -362,7 +362,7 @@ void Menu::KeyboardButtonNavigation(AiL*game,vf2d menuPos){ |
|
|
|
SetSelection(returnData); |
|
|
|
SetSelection(returnData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(game->KEY_LEFT.Pressed()){ |
|
|
|
if(game->KEY_LEFT.PressedDAS()){ |
|
|
|
SetMouseNavigation(false); |
|
|
|
SetMouseNavigation(false); |
|
|
|
if(std::holds_alternative<std::string>(nav.left)&&std::get<std::string>(nav.left).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.left))); |
|
|
|
if(std::holds_alternative<std::string>(nav.left)&&std::get<std::string>(nav.left).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.left))); |
|
|
|
else |
|
|
|
else |
|
|
@ -372,7 +372,7 @@ void Menu::KeyboardButtonNavigation(AiL*game,vf2d menuPos){ |
|
|
|
SetSelection(returnData); |
|
|
|
SetSelection(returnData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(game->KEY_RIGHT.Pressed()){ |
|
|
|
if(game->KEY_RIGHT.PressedDAS()){ |
|
|
|
SetMouseNavigation(false); |
|
|
|
SetMouseNavigation(false); |
|
|
|
if(std::holds_alternative<std::string>(nav.right)&&std::get<std::string>(nav.right).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.right))); |
|
|
|
if(std::holds_alternative<std::string>(nav.right)&&std::get<std::string>(nav.right).length()>0)SetSelection(std::string_view(std::get<std::string>(nav.right))); |
|
|
|
else |
|
|
|
else |
|
|
|