diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboard_x11.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/keyboard_x11.c b/src/keyboard_x11.c index 0a083b9..67def88 100644 --- a/src/keyboard_x11.c +++ b/src/keyboard_x11.c @@ -7,7 +7,7 @@ #include "keyboard.h" #include "keyboard_x11.h" //for event mask and key definitions -extern struct global global; +extern struct hvr_global global; #include "graphics_c3.h" extern struct gra_global gra_global; @@ -15,6 +15,10 @@ extern struct gra_global gra_global; #include "graphics_x11.h" extern struct x11_global x11_global; +int keyboard_init() {//return the fd that events should be read from. + return x11_global.fd;//good for now? +} + //I need some xkey -> HVK conversion hvk_t x11_keypress_handler(XKeyEvent *); hvk_t x11_passthru(XKeyEvent *); |