AccessibilityShortcuts Module
Turns off the Windows accessibility shortcuts (Sticky Keys, Filter Keys, Toggle Keys) while the game window has focus.
Pressing Shift five times, holding right Shift for eight seconds or holding Num Lock opens a Windows dialog that takes the focus from the game. Games that use Shift as a game key can turn these shortcuts off. Use Program.withAccessibilityShortcutsSuppressed or AdaptiveProgram.withAccessibilityShortcutsSuppressed; they add the renderer from this module.
A feature that the player has turned on stays as it is. The saved settings come back when the game window goes to the background, when the host disposes its renderers, and when the process exits. The change is never written to the user profile, so a killed process leaves it only until the next sign-in. On other operating systems the renderer does nothing.
Functions and values
| Function or value |
Description
|
|
A renderer that draws nothing. Each frame it turns the shortcuts off while this process owns the foreground window, and back on while it does not. Disposing it restores the saved settings. The raylib hosts dispose their renderers when the loop ends, and the MonoGame hosts when the game is disposed. When neither happens, a process exit or an unhandled exception restores the settings. On other operating systems the renderer does nothing.
|
Mibo