-- Automatically generated with ffi-cdecl.

local ffi = require("ffi")

ffi.cdef[[
static const int EVIOCGRAB = 1074021776;
static const int EVIOCGREP = 2148025603;
static const int EVIOCSREP = 1074283779;
static const int EV_ABS = 3;
static const int EV_FF = 21;
static const int EV_FF_STATUS = 23;
static const int EV_KEY = 1;
static const int EV_LED = 17;
static const int EV_MAX = 31;
static const int EV_MSC = 4;
static const int EV_PWR = 22;
static const int EV_REL = 2;
static const int EV_REP = 20;
static const int EV_SDL = 83;
static const int EV_SND = 18;
static const int EV_SW = 5;
static const int EV_SYN = 0;
static const int SYN_REPORT = 0;
static const int SYN_CONFIG = 1;
static const int SYN_MT_REPORT = 2;
static const int SYN_DROPPED = 3;
static const int KEY_BATTERY = 236;
static const int BTN_TOOL_PEN = 320;
static const int BTN_TOOL_FINGER = 325;
static const int BTN_TOOL_RUBBER = 321;
static const int BTN_TOUCH = 330;
static const int BTN_STYLUS = 331;
static const int BTN_STYLUS2 = 332;
static const int BTN_TOOL_DOUBLETAP = 333;
static const int ABS_X = 0;
static const int ABS_Y = 1;
static const int ABS_PRESSURE = 24;
static const int ABS_DISTANCE = 25;
static const int ABS_TILT_X = 26;
static const int ABS_TILT_Y = 27;
static const int ABS_MT_SLOT = 47;
static const int ABS_MT_TOUCH_MAJOR = 48;
static const int ABS_MT_TOUCH_MINOR = 49;
static const int ABS_MT_WIDTH_MAJOR = 50;
static const int ABS_MT_WIDTH_MINOR = 51;
static const int ABS_MT_ORIENTATION = 52;
static const int ABS_MT_POSITION_X = 53;
static const int ABS_MT_POSITION_Y = 54;
static const int ABS_MT_TOOL_TYPE = 55;
static const int ABS_MT_BLOB_ID = 56;
static const int ABS_MT_TRACKING_ID = 57;
static const int ABS_MT_PRESSURE = 58;
static const int ABS_MT_DISTANCE = 59;
static const int ABS_MT_TOOL_X = 60;
static const int ABS_MT_TOOL_Y = 61;
static const int SW_ROTATE_LOCK = 12;
static const int SW_MACHINE_COVER = 16;
static const int MSC_GESTURE = 2;
static const int MSC_GYRO = 71;
static const int MSC_RAW = 3;
static const int REP_DELAY = 0;
static const int REP_PERIOD = 1;
static const int REP_CNT = 2;
static const int DEVICE_ROTATED_UPRIGHT = 0;
static const int DEVICE_ROTATED_CLOCKWISE = 1;
static const int DEVICE_ROTATED_UPSIDE_DOWN = 2;
static const int DEVICE_ROTATED_COUNTER_CLOCKWISE = 3;
struct input_event {
  struct timeval time;
  short unsigned int type;
  short unsigned int code;
  int value;
};
]]
