Clean up debug keyboard on macOS

This commit is contained in:
Kovid Goyal
2021-04-22 09:28:11 +05:30
parent 9ce947d6ea
commit 84f6aabf5b
3 changed files with 54 additions and 29 deletions

View File

@@ -13,7 +13,7 @@
#define KEY_BUFFER_SIZE 128
#define SEND_TEXT_TO_CHILD INT_MIN
#define debug(...) if (OPT(debug_keyboard)) printf(__VA_ARGS__);
#define debug(...) if (OPT(debug_keyboard)) { fprintf(stderr, __VA_ARGS__); fflush(stderr); }
int
encode_glfw_key_event(const GLFWkeyevent *e, const bool cursor_key_mode, const unsigned flags, char *output);