input: support 2-buttons combo for menu button.

This commit is contained in:
sorgelig
2019-06-07 15:31:22 +08:00
parent 00a25d974d
commit 4ad9a8ae49
2 changed files with 41 additions and 17 deletions

View File

@@ -1982,6 +1982,7 @@ void HandleUI(void)
case MENU_JOYDIGMAP1:
{
int line_info = 0;
if (get_map_clear())
{
OsdWrite(3);
@@ -2006,7 +2007,15 @@ void HandleUI(void)
if (is_menu_core())
{
if (get_map_type()) joy_bcount = 15;
if (get_map_button() == 16) p = joy_button_map[8 + get_map_type()];
if (get_map_button() == 16)
{
p = joy_button_map[8 + get_map_type()];
if (get_map_type())
{
OsdWrite(12, " Allowed 2-buttons combo");
line_info = 1;
}
}
}
}
else
@@ -2037,6 +2046,8 @@ void HandleUI(void)
OsdWrite(3, s, 0, 0);
OsdWrite(4);
if (!line_info) OsdWrite(12);
if (get_map_vid() || get_map_pid())
{
if (!is_menu_core() && get_map_type() && !has_default_map())