|
#--------------------------------------------------------------------/ a O9 Z, R8 E: {' m( K
# MOUSE WHEEL SUPPORT 0 q4 ^: f9 M- b2 s3 y* g* `
# Environment Variables - Note quote variables so they are evaluated, @! {8 g3 G7 ^3 {
# at button time not when this file is read.: a, J" i7 M) G, J% j$ t
# - _wheelcnt variable is set based upon number of detents wheel moved
( m1 E. D' Y T' H0 P# range is -4 to 4 (no 0)" b8 y* h4 D6 l# e! [ y- z0 t& [! \$ Z
# - sx1 and sy1 are cursor coordinates when wheel is moved
7 k* m& C# h/ M+ g/ a9 H3 _#6 A0 y, t0 L5 d* d4 e) W
# Button values
2 S7 y' c- |, {( E' n7 ]4 U# wheel_up: when wheel is moved up
: G5 a4 v% t# s8 w& X# wheel_down: when wheel is moved down
8 P$ {- _6 O' |. n# wheel: up/down if either of above 2 buttons are not assigned
- G! R0 q. q2 U1 f# $ c& Y2 l8 J Y0 [: u
# Keyboard modifiers (note we are case insensitive)3 a! R. R; r! O& {1 U5 L8 z' g, @
# S - shift key
& L( U( m! X0 C% y( b7 H' H. O# C - control key/ [ b- s0 L& t
# SC - shift and control
! r+ J4 B' h( p4 K( b# Example: SCwheel - for wheel button assignment with both shift & control keys! T C( s# R( {* v8 A
#
+ [: q5 Y# L* O0 I' ^9 W5 K( j
9 e) `* d F7 H# Button factor may be factorion (e.g. 0.5)
+ V8 `. D: S ~0 B: x5 G6 Lset buttonfactor = 1( n/ `. G; S, U' |
. P- f8 l5 B8 K! F) T" g( G
button wheel_up "zoom in $buttonfactor"# N1 `! I0 j+ }5 z7 N
button wheel_down "zoom out $buttonfactor"
0 H! a8 t9 i% ^- L8 lbutton Cwheel_up "zoom in $buttonfactor"
* T t6 e* |8 I& fbutton Cwheel_down "zoom out $buttonfactor" |
|