mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
Virtual Keyboard keys with Control
This commit is contained in:
+25
-5
@@ -10,6 +10,7 @@ extern int NPAGE;
|
||||
extern int KCOL;
|
||||
extern int BKGCOLOR;
|
||||
extern int SHIFTON;
|
||||
extern int CTRLON;
|
||||
|
||||
void virtual_kdb(char *buffer,int vx,int vy)
|
||||
{
|
||||
@@ -33,15 +34,34 @@ unsigned short *pix=(unsigned short *)buffer;
|
||||
for(y=0;y<NLIGN;y++)
|
||||
{
|
||||
DrawBoxBmp((char*)pix,XBASE3+x*XSIDE,YBASE3+y*YSIDE, XSIDE,YSIDE, RGB565(7, 2, 1));
|
||||
Draw_text((char*)pix,XBASE0-2+x*XSIDE ,YBASE0+YSIDE*y,coul, BKGCOLOR ,1, 1,20,
|
||||
SHIFTON==-1?MVk[(y*NPLGN)+x+page].norml:MVk[(y*NPLGN)+x+page].shift);
|
||||
if (SHIFTON==1)
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+x*XSIDE ,YBASE0+YSIDE*y,coul, BKGCOLOR ,1, 1,20,MVk[(y*NPLGN)+x+page].shift);
|
||||
}
|
||||
else if (CONTRON==1)
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+x*XSIDE ,YBASE0+YSIDE*y,coul, BKGCOLOR ,1, 1,20,MVk[(y*NPLGN)+x+page].ctrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+x*XSIDE ,YBASE0+YSIDE*y,coul, BKGCOLOR ,1, 1,20,MVk[(y*NPLGN)+x+page].norml);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DrawBoxBmp((char*)pix,XBASE3+vx*XSIDE,YBASE3+vy*YSIDE, XSIDE,YSIDE, RGB565(31, 2, 1));
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,1), BKGCOLOR ,1, 1,20,
|
||||
SHIFTON==-1?MVk[(vy*NPLGN)+vx+page].norml:MVk[(vy*NPLGN)+vx+page].shift);
|
||||
|
||||
if (SHIFTON==1)
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,1), BKGCOLOR ,1, 1,20,MVk[(vy*NPLGN)+vx+page].shift);
|
||||
}
|
||||
else if (CONTRON==1)
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,1), BKGCOLOR ,1, 1,20,MVk[(vy*NPLGN)+vx+page].ctrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,1), BKGCOLOR ,1, 1,20,MVk[(vy*NPLGN)+vx+page].norml);
|
||||
}
|
||||
}
|
||||
|
||||
int check_vkey2(int x,int y)
|
||||
|
||||
Reference in New Issue
Block a user