input: allow to map key/button to enter and escape keys.

This commit is contained in:
sorgelig
2019-04-11 00:55:15 +08:00
parent 92f20ce7cf
commit 9740549327
2 changed files with 32 additions and 29 deletions

View File

@@ -1886,6 +1886,7 @@ void HandleUI(void)
sprintf(s, " on device %04x:%04x", get_map_vid(), get_map_pid());
OsdWrite(3, s, 0, 0);
}
OsdWrite(OsdGetSize() - 1, " Enter \x16 Finish, Esc \x16 Clear", menusub == 0, 0);
}
else
{
@@ -1901,7 +1902,7 @@ void HandleUI(void)
OsdWrite(2, " on the same pad", 0, 0);
OsdWrite(3, " or key on a keyboard", 0, 0);
}
OsdWrite(OsdGetSize() - 1, " Enter \x16 Finish, Esc \x16 Clear", menusub == 0, 0);
OsdWrite(OsdGetSize() - 1);
}
if (select || menu)
@@ -3595,17 +3596,17 @@ void HandleUI(void)
sprintf(s, " on keyboard %04x:%04x", get_map_vid(), get_map_pid());
}
OsdWrite(5, s, 0, 0);
OsdWrite(OsdGetSize() - 1, " finish", menusub == 0, 0);
}
else
{
flag = 1;
sprintf(s, " Press key to map %02X to", get_map_button() & 0xFF);
sprintf(s, " Press key to map 0x%02X to", get_map_button() & 0xFF);
OsdWrite(3, s, 0, 0);
OsdWrite(5, " on any keyboard", 0, 0);
OsdWrite(OsdGetSize() - 1);
}
OsdWrite(OsdGetSize() - 1, " finish", menusub == 0, 0);
if (select || menu)
{
finish_map_setting(menu);