diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-18 05:29:01 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-18 05:29:01 +0000 |
| commit | bfea000a7407e51b5659590415e410a47f6f046b (patch) | |
| tree | 05412a9b0af07d5000a992b0e81e7d2bdf2ed61c /plugins/keyboard/keyboard.c | |
| parent | 9185ca5c1a7e7fb492ef829449f9a089f1d858ee (diff) | |
add a keyboard plugin
Diffstat (limited to 'plugins/keyboard/keyboard.c')
| -rw-r--r-- | plugins/keyboard/keyboard.c | 18 |
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); +} + |
