blob: beb98b03cbce63cccf030efe2869aae01cc2ad8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef HWDATA_H
#define HWDATA_H
#include "common.h"
#define DIM_EVENTS 64
#define DIM_FINGER 16
////////////////////////////////////////////////////////
struct FingerData {
int touch_major, touch_minor;
int width_major, width_minor;
int orientation;
int position_x, position_y;
};
////////////////////////////////////////////////////////
struct HWData {
struct input_event event[DIM_EVENTS];
struct FingerData finger[DIM_FINGER];
int at, nev, nfinger;
bool left, middle, right;
};
////////////////////////////////////////////////////////
int read_hwdata(struct HWData *hw, int fd);
void output_hwdata(const struct HWData *hw);
////////////////////////////////////////////////////////
#endif
|