diff options
Diffstat (limited to 'src/window/key.c')
-rw-r--r-- | src/window/key.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/window/key.c b/src/window/key.c index 34084b3..b68270a 100644 --- a/src/window/key.c +++ b/src/window/key.c @@ -120,6 +120,13 @@ const char* mgl_key_to_string(mgl_key key) { case MGL_KEY_AUDIO_FORWARD: return "Audio Forward"; case MGL_KEY_DEAD_ACUTE: return "ยด"; case MGL_KEY_APOSTROPHE: return "'"; + case MGL_KEY_F16: return "F16"; + case MGL_KEY_F17: return "F17"; + case MGL_KEY_F18: return "F18"; + case MGL_KEY_F19: return "F19"; + case MGL_KEY_F20: return "F20"; + case MGL_KEY_F21: return "F21"; + case MGL_KEY_F22: return "F22"; case __MGL_NUM_KEYS__: return ""; } return ""; @@ -192,6 +199,13 @@ uint64_t mgl_key_to_x11_keysym(mgl_key key) { case MGL_KEY_AUDIO_FORWARD: return XF86XK_AudioForward; case MGL_KEY_DEAD_ACUTE: return XK_dead_acute; case MGL_KEY_APOSTROPHE: return XK_apostrophe; + case MGL_KEY_F16: return XK_F16; + case MGL_KEY_F17: return XK_F17; + case MGL_KEY_F18: return XK_F18; + case MGL_KEY_F19: return XK_F19; + case MGL_KEY_F20: return XK_F20; + case MGL_KEY_F21: return XK_F21; + case MGL_KEY_F22: return XK_F22; default: return XK_VoidSymbol; } return XK_VoidSymbol; |