summaryrefslogtreecommitdiff
path: root/synaptics.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2006-04-02 08:19:09 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:03:41 +0200
commit40f076f1db8b4e947aaba9e2b78a61c568b8b452 (patch)
tree519a032ad97e408c8bcad42b594fc15370587356 /synaptics.h
parent38074afb0a6ee57f7bd7c5a967bd22e922059321 (diff)
Implemented two-finger vertical and horizontal scrolling.
Patch from Stefan Bethge <stefan@lanpartei.de>, somewhat modified by me.
Diffstat (limited to 'synaptics.h')
-rw-r--r--synaptics.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/synaptics.h b/synaptics.h
index 07469c5..3591181 100644
--- a/synaptics.h
+++ b/synaptics.h
@@ -60,6 +60,10 @@ typedef struct _SynapticsSHM
emulate a middle button press. */
int scroll_dist_vert; /* Scrolling distance in absolute coordinates */
int scroll_dist_horiz; /* Scrolling distance in absolute coordinates */
+ Bool scroll_edge_vert; /* Enable/disable vertical scrolling on right edge */
+ Bool scroll_edge_horiz; /* Enable/disable horizontal scrolling on left edge */
+ Bool scroll_twofinger_vert; /* Enable/disable vertical two-finger scrolling */
+ Bool scroll_twofinger_horiz; /* Enable/disable horizontal two-finger scrolling */
double min_speed, max_speed, accl; /* movement parameters */
int edge_motion_min_z; /* finger pressure at which minimum edge motion speed is set */
int edge_motion_max_z; /* finger pressure at which maximum edge motion speed is set */
@@ -194,9 +198,11 @@ typedef struct _SynapticsPrivateRec
enum TapButtonState tap_button_state; /* Current tap action */
SynapticsMoveHistRec touch_on; /* data when the touchpad is touched/released */
- Bool vert_scroll_on; /* scrolling flag */
- Bool horiz_scroll_on; /* scrolling flag */
- Bool circ_scroll_on; /* scrolling flag */
+ Bool vert_scroll_edge_on; /* Keeps track of currently active scroll modes */
+ Bool horiz_scroll_edge_on; /* Keeps track of currently active scroll modes */
+ Bool vert_scroll_twofinger_on; /* Keeps track of currently active scroll modes */
+ Bool horiz_scroll_twofinger_on; /* Keeps track of currently active scroll modes */
+ Bool circ_scroll_on; /* Keeps track of currently active scroll modes */
Bool circ_scroll_vert; /* True: Generate vertical scroll events
False: Generate horizontal events */
double autoscroll_xspd; /* Horizontal coasting speed */