mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-21 06:39:36 +02:00
One page VKBD layout
Atari keyboard fits in one page!
This commit is contained in:
+7
-7
@@ -24,7 +24,7 @@ unsigned *pix=(unsigned*)buffer;
|
||||
unsigned short *pix=(unsigned short *)buffer;
|
||||
#endif
|
||||
|
||||
page = (NPAGE == -1) ? 0 : 5*NPLGN;
|
||||
page = (NPAGE == -1) ? 0 : NLIGN*NPLGN;
|
||||
coul = RGB565(28, 28, 31);
|
||||
BKGCOLOR = (KCOL>0?0xFF808080:0);
|
||||
|
||||
@@ -50,15 +50,15 @@ unsigned short *pix=(unsigned short *)buffer;
|
||||
}
|
||||
|
||||
// draw Shift and Control keys status
|
||||
// Shift - position 0,3
|
||||
// Shift - position 0,4
|
||||
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);
|
||||
Draw_text((char*)pix,XBASE0-2+0*XSIDE ,YBASE0+YSIDE*4,RGB565(2,2,31), BKGCOLOR ,1, 1,3,MVk[(4*NPLGN)+0+page].shift);
|
||||
}
|
||||
// Control - position 0,2
|
||||
// Control - position 0,3
|
||||
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);
|
||||
Draw_text((char*)pix,XBASE0-2+0*XSIDE ,YBASE0+YSIDE*3,RGB565(2,2,31), BKGCOLOR ,1, 1,3,MVk[(3*NPLGN)+0+page].ctrl);
|
||||
}
|
||||
|
||||
DrawBoxBmp((char*)pix,XBASE3+vx*XSIDE,YBASE3+vy*YSIDE, XSIDE,YSIDE, RGB565(31, 2, 1));
|
||||
@@ -74,11 +74,11 @@ unsigned short *pix=(unsigned short *)buffer;
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,1), BKGCOLOR ,1, 1,3,MVk[(vy*NPLGN)+vx+page].norml);
|
||||
}
|
||||
if (vx==0 && vy==3 && SHIFTON==1) // diferent Shift color if Shift is ON - position 0,3
|
||||
if (vx==0 && vy==4 && SHIFTON==1) // diferent Shift color if Shift is ON - position 0,4
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,21), BKGCOLOR ,1, 1,3,MVk[(vy*NPLGN)+vx+page].shift);
|
||||
}
|
||||
if (vx==0 && vy==2 && CTRLON==1) // diferent Conrol color if Control is ON - position 0,2
|
||||
if (vx==0 && vy==3 && CTRLON==1) // diferent Conrol color if Control is ON - position 0,3
|
||||
{
|
||||
Draw_text((char*)pix,XBASE0-2+vx*XSIDE ,YBASE0+YSIDE*vy,RGB565(2,31,21), BKGCOLOR ,1, 1,3,MVk[(vy*NPLGN)+vx+page].ctrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user