diff options
author | Peter Osterlund <petero2@telia.com> | 2004-01-25 00:10:28 +0100 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:42 +0200 |
commit | 995df72ef0e1db74c6ef432a633cdfdd3209839d (patch) | |
tree | 2ea08ffe913d7d1404c83650406d6f8ba9d6efe0 /synaptics.h | |
parent | 2fa26a2574fa3e8e79f1fbba5a9d47b866c414e7 (diff) |
Added support for circular scrolling. From Alexei Gilchrist
<alexei@physics.uq.edu.au>, with some cosmetic changes by me.
Diffstat (limited to 'synaptics.h')
-rw-r--r-- | synaptics.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synaptics.h b/synaptics.h index 3c14b11..e43202b 100644 --- a/synaptics.h +++ b/synaptics.h @@ -54,6 +54,9 @@ typedef struct _SynapticsSHM Bool touchpad_off; /* Switches the Touchpad off*/ Bool locked_drags; /* Enable locked drags */ int tap_action[MAX_TAP]; /* Button to report on tap events */ + Bool circular_scrolling; /* Enable circular scrolling */ + double scroll_dist_circ; /* Scrolling angle radians */ + int circular_trigger; /* Trigger area for circular scrolling */ } SynapticsSHM; #ifdef SYNAPTICS_PRIVATE @@ -147,6 +150,7 @@ typedef struct _SynapticsPrivateRec int largest_valid_x; /* Largest valid X coordinate seen so far */ int scroll_y; /* last y-scroll position */ int scroll_x; /* last x-scroll position */ + double scroll_a; /* last angle-scroll position */ unsigned long count_packet_finger; /* packet counter with finger on the touchpad */ unsigned int tapping_millis; /* packet counter for tapping */ unsigned int button_delay_millis; /* button delay for 3rd button emulation */ @@ -157,6 +161,7 @@ typedef struct _SynapticsPrivateRec Bool tap_left, tap_mid, tap_right; /* tapping buttons */ Bool vert_scroll_on; /* scrolling flag */ Bool horiz_scroll_on; /* scrolling flag */ + Bool circ_scroll_on; /* scrolling flag */ double frac_x, frac_y; /* absoulte -> relative fraction */ enum MidButtonEmulation mid_emu_state; /* emulated 3rd button */ int repeatButtons; /* buttons for repeat */ |