From 9b9ef5a2c0ec8e66c7da24c4229d89a90a10e914 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 16:22:40 +0100 Subject: Bugfixing in progress. Strange bug: wait_on adds to waiters but later not in waiters. --- src/lib/libkogata/gip.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/libkogata/gip.c') diff --git a/src/lib/libkogata/gip.c b/src/lib/libkogata/gip.c index 7fa1cca..852cc05 100644 --- a/src/lib/libkogata/gip.c +++ b/src/lib/libkogata/gip.c @@ -167,6 +167,10 @@ void giph_msg_header(mainloop_fd_t *fd) { mainloop_expect(fd, &h->mode_info_msg_buf, sizeof(gip_mode_info_msg), giph_mode_info); } else if (code == GIPN_BUFFER_DAMAGE) { mainloop_expect(fd, &h->buffer_damage_msg_buf, sizeof(gip_buffer_damage_msg), giph_buffer_damage); + } else if (code == GIPN_KEY_DOWN) { + use_cb = h->cb->key_down; + } else if (code == GIPN_KEY_UP) { + use_cb = h->cb->key_up; } else { use_cb = h->cb->unknown_msg; } -- cgit v1.2.3