From bfea000a7407e51b5659590415e410a47f6f046b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 18 Mar 2003 05:29:01 +0000 Subject: add a keyboard plugin --- plugins/keyboard/keyboard.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 plugins/keyboard/keyboard.c (limited to 'plugins/keyboard/keyboard.c') diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c new file mode 100644 index 00000000..3e621849 --- /dev/null +++ b/plugins/keyboard/keyboard.c @@ -0,0 +1,18 @@ +#include "../../kernel/dispatch.h" + +static void press(ObEvent *e, void *foo) +{ +} + +void plugin_startup() +{ + dispatch_register(Event_X_KeyPress, (EventHandler)press, NULL); + + /* XXX parse config file! */ +} + +void plugin_shutdown() +{ + dispatch_register(0, (EventHandler)press, NULL); +} + -- cgit v1.2.3