Skip to content

Commit

Permalink
New command to scroll mouse wheel continuously
Browse files Browse the repository at this point in the history
This is very similar to the
`<direction> <time_in_seconds>`
except that in most editing programs it doesn't move the cursor.
  • Loading branch information
Dusty Phillips committed May 14, 2020
1 parent a22362f commit cee8ca7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions castervoice/rules/core/navigation_rules/nav2.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ class NavigationNon(MappingRule):
R(Function(navigation.curse)),
"scree <direction> [<nnavi500>]":
R(Function(navigation.wheel_scroll)),
"zinc <direction> <time_in_seconds>":
R(AsynchronousAction(
[L(S(["cancel"], Function(navigation.wheel_scroll, nnavi500=1)))],
repetitions=1000,
blocking=False)),
"colic":
R(Key("control:down") + Mouse("left") + Key("control:up")),
"garb [<nnavi500>]":
Expand Down
3 changes: 3 additions & 0 deletions docs/readthedocs/Caster_Commands/Mouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ A video demonstration of mouse commands is found [here](https://youtu.be/UISjQBM
- `<direction>` can be _sauce_ (up), _dunce_ (down), _lease_ (left), or _ross_ (right).
- Scroll mouse wheel: `scree <direction> [number_of_scrolls]`
- `<direction>` can be _sauce_ (up) or _dunce_ (down).
- Scroll mouse wheel continuously (until you say `cancel`): `zinc <direction> <scroll speed>`
- `<direction>` can be _sauce_ (up) or _dunce_ (down).
- `<scroll speed>` can be _super slow_, _slow_, _normal_, or _supefast_

**Examples**:

Expand Down

0 comments on commit cee8ca7

Please sign in to comment.