Skip to content

Commit

Permalink
update RGFW
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Dec 22, 2024
1 parent dda0847 commit 9e10d3f
Show file tree
Hide file tree
Showing 3 changed files with 559 additions and 334 deletions.
2 changes: 1 addition & 1 deletion RSGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define RSGL_NO_SAVE_IMAGE - do not save/load images (don't use RSGL_drawImage if you use this),
RSGL_drawImage saves the file name + texture so it can load it
when you ask for it later. This disables that
#define RSGL_INIT_FONTS [number of fonts] - set hFow much room should be pre-allocated for fonts by fontstash
#define RSGL_INIT_FONTS [number of fonts] - set how much room should be pre-allocated for fonts by fontstash
this avoids performance issues related to RSGL_REALLOC
RSGL_INIT_FONTS = 4 by default
#define RSGL_INIT_IMAGES [number of fonts] - set how much room should be pre-allocated for images by RSGL
Expand Down
8 changes: 4 additions & 4 deletions RSGL_rgfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ b8 RSGL_checkEvent(void* userPtr) {
switch (win->event.type) {
case RGFW_keyPressed:
ev.type = RSGL_keyPressed;
ev.keyCode = RSGL_convertKey(win->event.keyCode);
ev.ch = RGFW_keyCodeToCharAuto(win->event.keyCode, win->event.lockState);
ev.keyCode = RSGL_convertKey(win->event.key);
ev.ch = win->event.keyChar;
break;
case RGFW_keyReleased:
ev.type = RSGL_keyReleased;
ev.keyCode = RSGL_convertKey(win->event.keyCode);
ev.ch = RGFW_keyCodeToCharAuto(win->event.keyCode, win->event.lockState);
ev.keyCode = RSGL_convertKey(win->event.key);
ev.ch = win->event.keyChar;
break;
case RGFW_mouseButtonPressed:
ev.type = RSGL_mouseButtonPressed;
Expand Down
Loading

0 comments on commit 9e10d3f

Please sign in to comment.