Unify key name string handling

This makes key names per-key static strings for all supported platforms.

Fixes #1200.

(cherry picked from commit 56ca0cb3b3)
This commit is contained in:
Camilla Löwy
2019-08-22 21:31:46 +02:00
parent 2032a8f0dc
commit 79f4ec6822
5 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ typedef struct _GLFWlibraryNS
id keyUpMonitor;
id nibObjects;
char keyName[64];
char keynames[GLFW_KEY_LAST + 1][17];
short int keycodes[256];
short int scancodes[GLFW_KEY_LAST + 1];
char* clipboardString;