|
) \! I/ R# ]% x% C
#--------------------------------------------------------------------
1 c) Q9 E# e' h ] ]$ h# MOUSE WHEEL SUPPORT
6 M' I( a- E3 c6 Q0 v# Environment Variables - Note quote variables so they are evaluated4 x2 X: S. S! v# z( H" C$ Z% c. B2 O
# at button time not when this file is read.
4 M! C# c' E5 h- J# - _wheelcnt variable is set based upon number of detents wheel moved! ^5 N# o# o: b0 d/ r
# range is -4 to 4 (no 0)' X( F0 S7 L8 X6 l) \5 w ]# _* G( F
# - sx1 and sy1 are cursor coordinates when wheel is moved7 J5 z8 f2 r4 ^
#
$ A& K) l4 O. K- U# Button values
: @# f+ f; S2 d7 |( S8 q# }$ s M# wheel_up: when wheel is moved up0 |) X% ^' @& i2 o# i' a/ H- B- L+ R
# wheel_down: when wheel is moved down2 T3 B4 B* h5 R5 P9 R8 B0 z8 r
# wheel: up/down if either of above 2 buttons are not assigned
) t& d4 c$ c$ w: M0 {# ; Q7 H2 M( K- x
# Keyboard modifiers (note we are case insensitive): t1 |0 G$ p, j B( \8 I- ^3 Y$ r
# S - shift key
5 U0 y" i, ]' }9 v* B! n# C - control key
1 Z, h2 ^3 c% D: x. u8 n# SC - shift and control
8 _9 h) u% ~& B# Example: SCwheel - for wheel button assignment with both shift & control keys
# ?- q9 `: S3 E#8 Y5 A% E, r& R, v7 O; o$ S
4 \* V' B: m" }7 Q# Button factor may be factorion (e.g. 0.5)
4 i0 j4 U3 `& U4 r% G9 v4 `set buttonfactor = 1
! ~* `- G+ j2 R) f
6 q: m1 R- G& ~4 m) ybutton wheel_up "zoom in $buttonfactor"9 f' N1 S4 y; Z5 w! I S
button wheel_down "zoom out $buttonfactor"
: y: t# y# m. ?: w' F' sbutton Cwheel_up "zoom in $buttonfactor"1 `1 ?1 q) \6 q
button Cwheel_down "zoom out $buttonfactor"
3 {: _4 _- U: D q. F9 w9 m, V" z) `# S |
|