summaryrefslogtreecommitdiff
path: root/plugins/keyboard/keyboard.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-18 05:29:01 +0000
committerDana Jansens <danakj@orodu.net>2003-03-18 05:29:01 +0000
commitbfea000a7407e51b5659590415e410a47f6f046b (patch)
tree05412a9b0af07d5000a992b0e81e7d2bdf2ed61c /plugins/keyboard/keyboard.c
parent9185ca5c1a7e7fb492ef829449f9a089f1d858ee (diff)
add a keyboard plugin
Diffstat (limited to 'plugins/keyboard/keyboard.c')
-rw-r--r--plugins/keyboard/keyboard.c18
1 files changed, 18 insertions, 0 deletions
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);
+}
+