aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libkogata/gip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libkogata/gip.c')
-rw-r--r--src/lib/libkogata/gip.c4
1 files changed, 4 insertions, 0 deletions
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;
}