mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
Third (final??) attemp at a new Virtual Keyboard (#75)
* Atari Console keys Added: Help, Start, Select, Option and Reset keys. * Atari TAB, RETURN and SPACE keys * Return? * Start, Option, Help and Emulator Menu buttons * Help key on Pad Added Atari Help key to joypad mapping. * First try to new keyboard * Shit on VKBD * Control key handle * Shift text UPPER when pressed * Atari 8bit font * Virtual Keyboard keys with Control * Minor error * 1st attemp to new vkbd layout Virtual Keyoboard recreated. Added atari font, Ctrl and Shift funcionality. Console buttons on second page. * % and null character display on VKBD * Revert "% and null character display on VKBD" This reverts commitf4eb848f26. * Displaying % and heart on VKBD - maybe... * Set max key description lenght to 3 * Always display only 3 characters of key desc. * Schift & Control status on VKBD * Second page of VKBD New second page. New layout, atari cursor keys and F1-F4 now working. * Minor mistake :) * Correct atari F1-F4 handling * Oooops... minor error * Better keys handling * Better Shift & Control indicators * Much better Shift and Control colors :) * Disable joystick input if Virtual Keyboard active Only for testing * Revert "Disable joystick input if Virtual Keyboard active" This reverts commit8b942c29e0. * One page VKBD layout Atari keyboard fits in one page! * Atari del/Bk Sp properly handling * VKBD opacity Only for testing * Keys names opacity Test only * Still testing VKBD opacity * minor error Still testing opacity * Added VKbd opacity witch switch. * Oppps...
This commit is contained in:
@@ -42,7 +42,7 @@ extern char Key_Sate2[512];
|
||||
extern int pauseg;
|
||||
|
||||
#define NPLGN 12
|
||||
#define NLIGN 5
|
||||
#define NLIGN 6
|
||||
#define NLETT 5
|
||||
|
||||
#define XSIDE (CROP_WIDTH/NPLGN -1)
|
||||
@@ -58,11 +58,20 @@ extern int pauseg;
|
||||
|
||||
#ifndef RENDER16B
|
||||
#define RGB565(r, g, b) (((r) << (5+16)) | ((g) << (5+8)) | (b<<5))
|
||||
#define R_RGB565(rgb) (((rgb) >> (5+16)) & 255)
|
||||
#define G_RGB565(rgb) (((rgb) >> (5+8)) & 255)
|
||||
#define B_RGB565(rgb) ((rgb>>5) & 255)
|
||||
#else
|
||||
#if defined(ABGR1555)
|
||||
#define RGB565(r, g, b) (((b) << (10)) | ((g) << 5) | (r))
|
||||
#define B_RGB565(rgb) (((rgb) >> (10)) & 31)
|
||||
#define G_RGB565(rgb) (((rgb) >> 5) & 31)
|
||||
#define R_RGB565(rgb) (rgb & 31)
|
||||
#else
|
||||
#define RGB565(r, g, b) (((r) << (5+6)) | ((g) << 6) | (b))
|
||||
#define R_RGB565(rgb) (((rgb) >> (5+6)) & 31)
|
||||
#define G_RGB565(rgb) (((rgb) >> 6) & 31)
|
||||
#define B_RGB565(rgb) (rgb & 31)
|
||||
#endif
|
||||
#endif
|
||||
#define uint32 unsigned int
|
||||
|
||||
Reference in New Issue
Block a user