no message
This commit is contained in:
parent
08f29fde5d
commit
4835fb098c
|
@ -211,9 +211,11 @@ static void drawPlayerButtons(Menu* menu, s32 x, s32 y)
|
||||||
|
|
||||||
tic->api.sprite_ex(tic, &tic->config.bank0.tiles, 8+i, rect.x, rect.y, 1, 1, &chromakey, 1, 1, tic_no_flip, tic_no_rotate);
|
tic->api.sprite_ex(tic, &tic->config.bank0.tiles, 8+i, rect.x, rect.y, 1, 1, &chromakey, 1, 1, tic_no_flip, tic_no_rotate);
|
||||||
|
|
||||||
|
static const char const * Names[tic_keys_count] = {"...", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "minus", "equals", "leftbracket", "rightbracket", "backslash", "semicolon", "apostrophe", "grave", "comma", "period", "slash", "space", "tab", "return", "backspace", "delete", "insert", "pageup", "pagedown", "home", "end", "up", "down", "left", "right", "capslock", "ctrl", "shift", "alt", "escape", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12"};
|
||||||
|
|
||||||
s32 code = codes[index];
|
s32 code = codes[index];
|
||||||
char label[32] = "fix names...";
|
char label[32];
|
||||||
// strcpy(label, code ? SDL_GetKeyName(SDL_GetKeyFromScancode(code)) : "...");
|
strcpy(label, Names[code]);
|
||||||
|
|
||||||
if(strlen(label) > MaxChars)
|
if(strlen(label) > MaxChars)
|
||||||
label[MaxChars] = '\0';
|
label[MaxChars] = '\0';
|
||||||
|
|
488
src/studio.c
488
src/studio.c
File diff suppressed because it is too large
Load Diff
|
@ -91,8 +91,8 @@ void setCursor(tic_cursor id);
|
||||||
s32 getMouseX();
|
s32 getMouseX();
|
||||||
s32 getMouseY();
|
s32 getMouseY();
|
||||||
bool checkMousePos(const tic_rect* rect);
|
bool checkMousePos(const tic_rect* rect);
|
||||||
bool checkMouseClick(const tic_rect* rect, s32 button);
|
bool checkMouseClick(const tic_rect* rect, tic_mouse_btn button);
|
||||||
bool checkMouseDown(const tic_rect* rect, s32 button);
|
bool checkMouseDown(const tic_rect* rect, tic_mouse_btn button);
|
||||||
|
|
||||||
void drawToolbar(tic_mem* tic, u8 color, bool bg);
|
void drawToolbar(tic_mem* tic, u8 color, bool bg);
|
||||||
void drawBitIcon(s32 x, s32 y, const u8* ptr, u8 color);
|
void drawBitIcon(s32 x, s32 y, const u8* ptr, u8 color);
|
||||||
|
|
Loading…
Reference in New Issue