|
Lines 49-58
typedef struct _SynapticsSHM
Link Here
|
| 49 |
/* Parameter data */ |
49 |
/* Parameter data */ |
| 50 |
int left_edge, right_edge, top_edge, bottom_edge; /* edge coordinates absolute */ |
50 |
int left_edge, right_edge, top_edge, bottom_edge; /* edge coordinates absolute */ |
| 51 |
int finger_low, finger_high; /* finger detection values in Z-values */ |
51 |
int finger_low, finger_high; /* finger detection values in Z-values */ |
| 52 |
unsigned long tap_time; |
52 |
int tap_time; |
| 53 |
int tap_move; /* max. tapping time and movement in packets and coord. */ |
53 |
int tap_move; /* max. tapping time and movement in packets and coord. */ |
| 54 |
unsigned long tap_time_2; /* max. tapping time for double taps */ |
54 |
int tap_time_2; /* max. tapping time for double taps */ |
| 55 |
unsigned long click_time; /* The duration of a single click */ |
55 |
int click_time; /* The duration of a single click */ |
| 56 |
Bool fast_taps; /* Faster reaction to single taps */ |
56 |
Bool fast_taps; /* Faster reaction to single taps */ |
| 57 |
int emulate_mid_button_time; /* Max time between left and right button presses to |
57 |
int emulate_mid_button_time; /* Max time between left and right button presses to |
| 58 |
emulate a middle button press. */ |
58 |
emulate a middle button press. */ |
|
Lines 121-127
typedef struct _SynapticsSHM
Link Here
|
| 121 |
typedef struct _SynapticsMoveHist |
121 |
typedef struct _SynapticsMoveHist |
| 122 |
{ |
122 |
{ |
| 123 |
int x, y; |
123 |
int x, y; |
| 124 |
unsigned int millis; |
124 |
int millis; |
| 125 |
} SynapticsMoveHistRec; |
125 |
} SynapticsMoveHistRec; |
| 126 |
|
126 |
|
| 127 |
enum MidButtonEmulation { |
127 |
enum MidButtonEmulation { |
|
Lines 177-185
typedef struct _SynapticsPrivateRec
Link Here
|
| 177 |
int scroll_y; /* last y-scroll position */ |
177 |
int scroll_y; /* last y-scroll position */ |
| 178 |
int scroll_x; /* last x-scroll position */ |
178 |
int scroll_x; /* last x-scroll position */ |
| 179 |
double scroll_a; /* last angle-scroll position */ |
179 |
double scroll_a; /* last angle-scroll position */ |
| 180 |
unsigned long count_packet_finger; /* packet counter with finger on the touchpad */ |
180 |
int count_packet_finger; /* packet counter with finger on the touchpad */ |
| 181 |
unsigned int button_delay_millis; /* button delay for 3rd button emulation */ |
181 |
int button_delay_millis; /* button delay for 3rd button emulation */ |
| 182 |
unsigned int prev_up; /* Previous up button value, for double click emulation */ |
182 |
Bool prev_up; /* Previous up button value, for double click emulation */ |
| 183 |
Bool finger_flag; /* previous finger */ |
183 |
Bool finger_flag; /* previous finger */ |
| 184 |
|
184 |
|
| 185 |
enum TapState tap_state; /* State of tap processing */ |
185 |
enum TapState tap_state; /* State of tap processing */ |
|
Lines 201-207
typedef struct _SynapticsPrivateRec
Link Here
|
| 201 |
double frac_x, frac_y; /* absolute -> relative fraction */ |
203 |
double frac_x, frac_y; /* absolute -> relative fraction */ |
| 202 |
enum MidButtonEmulation mid_emu_state; /* emulated 3rd button */ |
204 |
enum MidButtonEmulation mid_emu_state; /* emulated 3rd button */ |
| 203 |
int repeatButtons; /* buttons for repeat */ |
205 |
int repeatButtons; /* buttons for repeat */ |
| 204 |
unsigned long nextRepeat; /* Time when to trigger next auto repeat event */ |
206 |
int nextRepeat; /* Time when to trigger next auto repeat event */ |
| 205 |
int lastButtons; /* last state of the buttons */ |
207 |
int lastButtons; /* last state of the buttons */ |
| 206 |
int palm; /* Set to true when palm detected, reset to false when |
208 |
int palm; /* Set to true when palm detected, reset to false when |
| 207 |
palm/finger contact disappears */ |
209 |
palm/finger contact disappears */ |