From f0bfad6db6368bd20e3ac1876fc6a3bfb3f5a63a Mon Sep 17 00:00:00 2001 From: Pecusx Date: Fri, 7 May 2021 16:44:18 +0200 Subject: [PATCH] Schift & Control status on VKBD --- libretro/vkbd.c | 12 ++++++++++++ libretro/vkbd_def.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libretro/vkbd.c b/libretro/vkbd.c index 56603e4..fa0019f 100644 --- a/libretro/vkbd.c +++ b/libretro/vkbd.c @@ -48,6 +48,18 @@ unsigned short *pix=(unsigned short *)buffer; } } } + + // draw Shift and Control keys status + // Shift - position 0,3 + if (SHIFTON==1) + { + Draw_text((char*)pix,XBASE0-2+0*XSIDE ,YBASE0+YSIDE*3,RGB565(2,2,31), BKGCOLOR ,1, 1,3,MVk[(3*NPLGN)+0+page].shift); + } + // Control - position 0,2 + if (CTRLON==1) + { + Draw_text((char*)pix,XBASE0-2+0*XSIDE ,YBASE0+YSIDE*2,RGB565(2,2,31), BKGCOLOR ,1, 1,3,MVk[(2*NPLGN)+0+page].ctrl); + } DrawBoxBmp((char*)pix,XBASE3+vx*XSIDE,YBASE3+vy*YSIDE, XSIDE,YSIDE, RGB565(31, 2, 1)); if (SHIFTON==1) diff --git a/libretro/vkbd_def.h b/libretro/vkbd_def.h index 5ad7485..15f5491 100644 --- a/libretro/vkbd_def.h +++ b/libretro/vkbd_def.h @@ -63,8 +63,8 @@ Mvk MVk[NPLGN*NLIGN*2]={ { "Inv", "Inv", "Inv", RETROK_LSUPER}, { "PG2", "PG2", "PG2", -2}, //40+8 - { "Del", "Del", "Del", RETROK_DELETE}, { "Spc", "Spc", "Spc", RETROK_SPACE}, + { "Del", "Del", "Del", RETROK_DELETE}, { "Clr", "Clr", "Clr", RETROK_HOME}, { "Ins", "Ins", "Ins", RETROK_INSERT}, { " + ", " \\ ", " + ", RETROK_EQUALS},