diff options
Diffstat (limited to 'plugins/mouse/mouse.c')
| -rw-r--r-- | plugins/mouse/mouse.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c new file mode 100644 index 00000000..7b129c89 --- /dev/null +++ b/plugins/mouse/mouse.c @@ -0,0 +1,29 @@ +#include "../../kernel/dispatch.h" +#include <glib.h> + +void my_powerful_function() {} + +static void event(ObEvent *e, void *foo) +{ + switch (e->type) { + case Event_X_ButtonPress: + break; + case Event_X_ButtonRelease: + break; + case Event_X_MotionNotify: + break; + default: + g_assert_not_reached(); + } +} + +void plugin_startup() +{ + dispatch_register(Event_X_ButtonPress | Event_X_ButtonRelease | + Event_X_MotionNotify, (EventHandler)event, NULL); +} + +void plugin_shutdown() +{ + dispatch_register(0, (EventHandler)event, NULL); +} |
