summaryrefslogtreecommitdiff
path: root/src/input.c
blob: 567928b3542f8ed36f8f6480bffc2148fddd0472 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <idc.h>
#include "common.h"
#include "graphics_x11.h"
#include "keyboard_x11.h"
#include "mouse_x11.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)) {
  }
}