Show gamepad in OSD when doing button mapping

This commit is contained in:
Newsdee
2019-10-23 22:04:57 +08:00
committed by sorgelig
parent e6250a6db4
commit 3f94c5efed
3 changed files with 48 additions and 1 deletions

View File

@@ -205,6 +205,15 @@ void OsdWrite(unsigned char n, const char *s, unsigned char invert, unsigned cha
OsdWriteOffset(n, s, invert, stipple, 0, 0, usebg, maxinv);
}
void OsdWriteDelay(unsigned char n, const char *s, unsigned char invert, unsigned char stipple, char usebg, int maxinv)
{
if (s && s[0] && CheckTimer(scroll_timer)) // scroll if long name and timer delay elapsed
{
OsdWrite(n, s, invert, stipple, usebg, maxinv);
scroll_timer = GetTimer(SCROLL_DELAY2); // reset scroll timer to repeat delay
}
}
// write a null-terminated string <s> to the OSD buffer starting at line <n>
void OsdWriteOffset(unsigned char n, const char *s, unsigned char invert, unsigned char stipple, char offset, char leftchar, char usebg, int maxinv)
{