Skip to content

Commit dd2d318

Browse files
remove keyname (winapi)
1 parent 82faf12 commit dd2d318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RGFW.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ typedef RGFW_ENUM(u8, RGFW_mouseIcons) {
12611261
#include <stdio.h>
12621262
#endif
12631263

1264-
#include <stdio.h>
1264+
#include <string.h>
12651265

12661266
#include <math.h>
12671267
#include <assert.h>
@@ -9157,7 +9157,7 @@ void EMSCRIPTEN_KEEPALIVE RGFW_handleKeyEvent(char* key, char* code, b8 press) {
91579157
RGFW_keyboard[physicalKey].prev = RGFW_keyboard[physicalKey].current;
91589158
RGFW_keyboard[physicalKey].current = 0;
91599159

9160-
RGFW_keyCallback(RGFW_root, physicalKey, mappedKey, RGFW_events[RGFW_eventLen].keyName, 0, press);
9160+
RGFW_keyCallback(RGFW_root, physicalKey, mappedKey, 0, press);
91619161

91629162
RGFW_free(key);
91639163
RGFW_free(code);

0 commit comments

Comments
 (0)