1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
# Accessibility methods
Accessibility methods are options which
accommodate users with disabilities. Mir offers a variety of accessibility
methods which can be broadly categorized into: Pointer accessibility, typing
accessibility, and visual accessibility methods.
## Pointer accessibility
Mir includes the following pointer accessibility methods:
1. Mousekeys
1. Simulated secondary click
1. Hover click
### Mousekeys
Mousekeys allows users to control the mouse pointer through their keyboard.
This not only includes movement and primary clicks, but it also extends to
secondary and tertiary clicks, with the ability to dispatch single and double
clicks, as well as holding and releasing mouse buttons.
API details: {cpp:class}`miral::MouseKeysConfig`.
### Simulated secondary click
Simulated secondary click allows users to emulate a secondary click by holding
down the primary click button for a short duration. The pointer is allowed to
slightly move from the position the simulated secondary click started from to
further accommodate users.
Callbacks are available and trigger when the click starts,
when it's canceled, and when it's successfully dispatched. These
callbacks can be used to provide custom visual and audio feedback.
API details: {cpp:class}`miral::SimulatedSecondaryClick`
### Hover click
Hover click allows users to dispatch primary clicks by hovering the pointer at
a specific point for a short period of time. After the hover click is
initiated, the pointer is allowed to slightly move.
After a click is successfully dispatched, no further clicks will be initiated
unless the pointer moves a short distance from the position of the last click.
Callbacks are available and trigger when clicks are initiated, canceled,
or dispatched. They can be used to provide visual and audio feedback.
API details: {cpp:class}`miral::HoverClick`
## Typing accessibility
Mir includes the following Typing accessibility methods:
1. Sticky Keys
1. Slow Keys
1. Bounce Keys
### Sticky keys
Sticky keys allows users to perform key combos that require holding down
modifier keys without having to keep modifier keys pressed down.
Sticky keys can be temporarily disabled if users press two modifiers
simultaneously. This is useful for users who can press some keyboard shortcuts
that require keys next to each other, but not more complicated shortcuts, for
example.
Callbacks are available and trigger when modifier keys are pressed and become
sticky. This can be used to provide feedback to users.
API details: {cpp:class}`miral::StickyKeys`
### Slow keys
Slow keys allows users with motor disabilities to configure Mir to ignore key
presses lasting less than a specific period.
Callbacks are available and trigger when a key is depressed,
when a key press is rejected, and when a key press is accepted.
API details: {cpp:class}`miral::SlowKeys`
### Bounce keys
Bounce keys prevents multiple successive presses of the same key issued during
a small window of time from registering multiple times.
You can optionally attach a rejection handler to provide feedback to users on
rejected presses.
API details: {cpp:class}`miral::BounceKeys`
## Visual accessibility
Mir includes the following visual accessibility methods:
1. Cursor scaling
1. Color filters
1. Zooming/Magnification
1. Locate Pointer
### Cursor scaling
Cursor scaling allows users to scale the cursor at runtime to any value between
0 and 100.
API details: {cpp:class}`miral::CursorScale`
### Color filters
Mir provides two color filters by default, a grayscale filter, and a color
inversion filter. At the moment, it's not possible to implement your own custom
filter.
API details: {cpp:class}`miral::OutputFilter`
### Zooming/magnification
For users who require temporary magnification, Mir provides a built-in
magnification tool. By default, it magnifies a small area around the cursor,
but the magnification power and magnification area can be modified at runtime.
API details: check out {cpp:class}`miral::Magnifier`
### Locate Pointer
Useful for providing visual feedback about the position if the cursor. The
default implementation grows the cursor for a brief period of time before
shrinking it back down.
API details: check out {cpp:class}`miral::LocatePointer`
|