Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command to scroll mouse wheel continuously #802

Merged
merged 2 commits into from
May 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)),
"scree <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