summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2019-08-03 07:51:14 -0500
committerepoch <epoch@hacking.allowed.org>2019-08-03 07:51:14 -0500
commit1a7fffc29115b6760a855d9ca9a8323ba23d01b4 (patch)
tree8842352e2baeed3ea8d6a3febab61729215c8d60 /src
parent53a6094765a7a11aef17f922ee85e560ff020096 (diff)
downloadhackvr-1a7fffc29115b6760a855d9ca9a8323ba23d01b4.tar.gz
hackvr-1a7fffc29115b6760a855d9ca9a8323ba23d01b4.zip
global rename. unimportant function
Diffstat (limited to 'src')
-rw-r--r--src/keyboard_x11.c6
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 *);