Skip to content

Commit

Permalink
Added (un)register_mods to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
precondition committed Jan 24, 2021
1 parent 187fcfe commit 378d67f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/feature_advanced_keycodes.md
Original file line number Diff line number Diff line change
@@ -61,7 +61,9 @@ The full list of mod masks is as follows:
Aside from accessing the currently active modifiers using `get_mods()`, there exists some other functions you can use to modify the modifier state, where the `mods` argument refers to the modifiers bitmask.

* `add_mods(mods)`: Enable `mods` without affecting any other modifiers
* `register_mods(mods)`: Like `add_mods` but send a keyboard report immediately.
* `del_mods(mods)`: Disable `mods` without affecting any other modifiers
* `unregister_mods(mods)`: Like `del_mods` but send a keyboard report immediately.
* `set_mods(mods)`: Overwrite current modifier state with `mods`
* `clear_mods()`: Reset the modifier state by disabling all modifiers

0 comments on commit 378d67f

Please sign in to comment.