File: bindings.h

package info (click to toggle)
ogle 0.9.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,940 kB
  • ctags: 3,499
  • sloc: ansic: 35,155; sh: 7,555; makefile: 259; asm: 71
file content (22 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef BINDINGS_H
#define BINDINGS_H

#include <X11/Xlib.h>

typedef enum {
  PointerButtonPress,
  PointerMotion
} PointerEventType;

typedef struct {
  PointerEventType type;
  unsigned int time;
  int x;
  int y;
  unsigned int modifier_mask; 
} pointer_event_t;

void do_keysym_action(KeySym keysym);
void add_keybinding(char *key, char *action);

#endif /* BINDINGS_H */