You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
8 years ago
|
# Akela-Escape-OneShot
|
||
|
|
||
|
![status][st:experimental]
|
||
|
|
||
|
[st:stable]: https://img.shields.io/badge/stable-✔-black.png?style=flat&colorA=44cc11&colorB=494e52
|
||
|
[st:broken]: https://img.shields.io/badge/broken-X-black.png?style=flat&colorA=e05d44&colorB=494e52
|
||
|
[st:experimental]: https://img.shields.io/badge/experimental----black.png?style=flat&colorA=dfb317&colorB=494e52
|
||
|
|
||
|
Turn the `Esc` key into a special key, that can cancel any active `OneShot`
|
||
|
effect - or act as the normal `Esc` key if none are active. For those times when
|
||
|
one accidentally presses a one-shot key, or change their minds.
|
||
|
|
||
|
## Using the plugin
|
||
|
|
||
|
To use the plugin, one needs to include the header, and activate it. No further
|
||
|
configuration is necessary.
|
||
|
|
||
|
```c++
|
||
|
#include <Akela-OneShot.h>
|
||
|
#include <Akela-Escape-OneShot.h>
|
||
|
|
||
|
void setup () {
|
||
|
Keyboardio.setup (KEYMAP_SIZE);
|
||
|
|
||
|
Keyboardio.use (&OneShot, &EscapeOneShot, NULL);
|
||
|
}
|
||
|
```
|
||
|
|
||
|
The plugin only makes sense when using one-shot keys.
|
||
|
|
||
|
## Plugin methods
|
||
|
|
||
|
The plugin provides the `EscapeOneShot` object, which has no public methods.
|