summaryrefslogtreecommitdiff
path: root/src/input.c
blob: 8c1b99b6de117e5a67a7b3ebcf0b3e2b8b8e586f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <idc.h>
#include "common.h"
#include "graphics_x11.h"
#include "keyboard_x11.h"
#include "mouse_x11.h"
#include "input.h"

extern struct x11_global x11_global;

int input_init() {
  return x11_global.fd;
}

void input_event_handler(struct shit *me,char *line) {
  if(keyboard_event_handler(me,line)) {
  }
  if(mouse_event_handler(me,line)) {
  }
}