summaryrefslogtreecommitdiff
path: root/plugins/mouse/mouse.h
blob: 832ada1f1bebd9a5724ddc5a5581e7f2bc774a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __plugin_mouse_mouse_h
#define __plugin_mouse_mouse_h

#include "../../kernel/action.h"

typedef enum {
    MouseAction_Press,
    MouseAction_Release,
    MouseAction_Click,
    MouseAction_DClick,
    MouseAction_Motion,
    NUM_MOUSEACTION
} MouseAction;

typedef struct {
    guint state;
    guint button;
    Action *action[NUM_MOUSEACTION];
} MouseBinding;

gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact,
               Action *action);

#endif