|
#--------------------------------------------------------------------
. f+ b1 ]' y) }" g# MOUSE WHEEL SUPPORT , b1 N+ k7 w" q+ K G: s
# Environment Variables - Note quote variables so they are evaluated
5 i3 T& |. S9 [8 h/ ]( T( h/ Y# at button time not when this file is read., j7 k4 Z$ U: Q
# - _wheelcnt variable is set based upon number of detents wheel moved" `; t' }) A6 y( }, p, Y
# range is -4 to 4 (no 0)
5 w& T* f2 X3 \/ O# - sx1 and sy1 are cursor coordinates when wheel is moved+ r8 Y5 y9 M" {. H X* }
#0 n9 D) C: W8 o0 q# u% n
# Button values
; V& s: w& T7 a# wheel_up: when wheel is moved up1 e7 X* a. ]- z4 v8 i, R; x3 u0 u
# wheel_down: when wheel is moved down
3 R7 N7 k/ ~9 ^# wheel: up/down if either of above 2 buttons are not assigned8 G A+ n/ }/ |) H# V
#
' S- X8 ^% j, p/ z/ B+ P- k# Keyboard modifiers (note we are case insensitive)1 N, [" f1 t: ]1 F* i
# S - shift key9 b( U" {' ~ N; }1 b( ?1 p2 _
# C - control key
3 |) p7 F6 A& @+ O2 T3 _/ z. J& _# SC - shift and control
+ V; {' u7 n" G: Y* q" a# Example: SCwheel - for wheel button assignment with both shift & control keys
- i$ N# }" F" I- Q#2 w+ J; j5 K1 r9 a
0 i, f3 `. P. t; F' k6 R
# Button factor may be factorion (e.g. 0.5)
J% a+ i7 J2 |' d1 w8 y- dset buttonfactor = 1
! s8 f& g, y" M% l- d/ g' h
( h, ~5 S6 w; i. qbutton wheel_up "zoom in $buttonfactor": Q" N0 a; G/ m0 d4 M
button wheel_down "zoom out $buttonfactor"! v3 [! @$ _" T4 H
button Cwheel_up "zoom in $buttonfactor"
- N' m9 v$ L& T7 c3 |- ^( Gbutton Cwheel_down "zoom out $buttonfactor" |
|