Blob Blame Raw
#ifndef INPUT_H
#define INPUT_H


#include "common.h"

#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>


typedef struct Input {
  App *app;
  Display *dpy;
  int mappedKeyCode;
  int mappedPressed;
} Input;


int inputInit(Input *in, App *app);
void inputDeinit(Input *in);

void inputEvent(Input *in, unsigned int keySym, int press);


#endif