Basic changes for new glfw keyboard API

This commit is contained in:
Kovid Goyal
2018-03-29 18:04:02 +05:30
parent 7926a140b8
commit 582500d3e9
3 changed files with 6 additions and 14 deletions

View File

@@ -153,9 +153,10 @@ send_key_to_child(Window *w, int key, int mods, int action) {
}
void
on_key_input(int key, int scancode, int action, int mods) {
on_key_input(int key, int scancode, int action, int mods, const char* text, int state) {
Window *w = active_window();
if (!w) return;
(void)state; (void)text;
Screen *screen = w->render_data.screen;
int lkey = get_localized_key(key, scancode);
if (action == GLFW_PRESS || action == GLFW_REPEAT) {