Add keyboard, create folder, rename folder/file

This commit is contained in:
suchmememanyskill
2020-12-29 16:51:47 +01:00
parent 2302e6111a
commit dfc02f9f81
11 changed files with 307 additions and 9 deletions

View File

@@ -486,6 +486,12 @@ void gfx_printf(const char *fmt, ...)
va_end(ap);
}
void gfx_putc_small(char c){
gfx_con.fntsz = 8;
gfx_putc(c);
gfx_con.fntsz = 16;
}
void gfx_hexdump(u32 base, const u8 *buf, u32 len)
{
if (gfx_con.mute)

View File

@@ -69,6 +69,7 @@ void gfx_hexdump(u32 base, const u8 *buf, u32 len);
void gfx_hexdiff(u32 base, const u8 *buf1, const u8 *buf2, u32 len);
void gfx_puts_limit(const char *s, u32 limit);
void gfx_puts_small(const char *s);
void gfx_putc_small(char c);
void gfx_set_pixel(u32 x, u32 y, u32 color);
void gfx_set_pixel_horz(int x, int y, u32 color);

View File

@@ -25,12 +25,12 @@ MenuEntry_t YesNoEntries[] = {
};
int MakeYesNoHorzMenu(int spacesBetween, u32 bg){
return MakeHorizontalMenu(YesNoEntries, ARR_LEN(YesNoEntries), spacesBetween, bg);
return MakeHorizontalMenu(YesNoEntries, ARR_LEN(YesNoEntries), spacesBetween, bg, 0);
}
int MakeHorizontalMenu(MenuEntry_t *entries, int len, int spacesBetween, u32 bg){
int MakeHorizontalMenu(MenuEntry_t *entries, int len, int spacesBetween, u32 bg, int startPos){
u32 initialX = 0, initialY = 0;
u32 highlight = 0;
u32 highlight = startPos;
gfx_con_getpos(&initialX, &initialY);
while (1){

View File

@@ -14,5 +14,5 @@
#define RGBUnionToU32(optionUnion) (optionUnion | 0xFF000000)
void gfx_clearscreen();
int MakeHorizontalMenu(MenuEntry_t *entries, int len, int spacesBetween, u32 bg);
int MakeHorizontalMenu(MenuEntry_t *entries, int len, int spacesBetween, u32 bg, int startPos);
int MakeYesNoHorzMenu(int spacesBetween, u32 bg);