|
#--------------------------------------------------------------------
& f2 L1 O# A7 V" i/ S) G. D. W3 N# MOUSE WHEEL SUPPORT ( [- D5 s, @% {0 i
# Environment Variables - Note quote variables so they are evaluated
' A( P. C' }5 I' Z( [* a& C# at button time not when this file is read.' E6 I/ M. K# B$ d0 k8 b5 Z
# - _wheelcnt variable is set based upon number of detents wheel moved7 m8 X6 p. l5 |2 W8 P/ ~& j
# range is -4 to 4 (no 0)
. A, D3 I6 Q- b) k3 b# - sx1 and sy1 are cursor coordinates when wheel is moved1 p O# e; Z! G* r; @/ A$ @
# C0 v; I: F. n7 H
# Button values
0 o. M& l9 B6 V/ y# wheel_up: when wheel is moved up
# C' O$ A& I6 k) _4 z6 o# wheel_down: when wheel is moved down! n6 Q8 ~/ U- H4 R, Y3 e& S
# wheel: up/down if either of above 2 buttons are not assigned: t% Z1 ~% C5 w* j" W( s3 M( I
#
9 U" N( Q' w% ]8 i! y3 E# Keyboard modifiers (note we are case insensitive)+ W( l( h8 p& F6 k2 b$ m
# S - shift key* b1 h' m- A7 M' }2 {, A
# C - control key
9 a+ G; e/ X9 v" z# ~$ q9 J# SC - shift and control
, m" w& p9 r( a6 L+ J0 m' R# Example: SCwheel - for wheel button assignment with both shift & control keys
) g6 ]: \( _6 E1 d6 U& H/ N#
4 ^' n) k2 b9 E1 T3 ?! i & g7 T. J" A' k$ K. I; g
# Button factor may be factorion (e.g. 0.5)' g6 c$ f E) ] E2 ^; o
set buttonfactor = 1% ~# p; n8 s' |- j) h {7 @) n7 C
4 ^5 h8 T3 }' K8 }9 C5 I6 N
button wheel_up "zoom in $buttonfactor"
9 b- a; x0 @: P3 A# Nbutton wheel_down "zoom out $buttonfactor"
0 z* s; I; d! h( s* i- {button Cwheel_up "zoom in $buttonfactor"4 b* P& i3 k7 s7 |
button Cwheel_down "zoom out $buttonfactor" |
|