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.
57 lines
1.8 KiB
57 lines
1.8 KiB
# Kaleidoscope-TopsyTurvy
|
|
|
|
![status][st:stable] [![Build Status][travis:image]][travis:status]
|
|
|
|
[travis:image]: https://travis-ci.org/keyboardio/Kaleidoscope-TopsyTurvy.svg?branch=master
|
|
[travis:status]: https://travis-ci.org/keyboardio/Kaleidoscope-TopsyTurvy
|
|
|
|
[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
|
|
|
|
`TopsyTurvy` is a plugin that inverts the behaviour of the `Shift` key for some
|
|
selected keys. That is, if configured so, it will input `!` when pressing the
|
|
`1` key without `Shift`, but with the modifier pressed, it will input the
|
|
original `1` symbol.
|
|
|
|
## Using the plugin
|
|
|
|
To use the plugin, one needs to include the header, create a list, and configure
|
|
the provided `TopsyTurvy` object to use the dictionary:
|
|
|
|
```c++
|
|
#include <Kaleidoscope.h>
|
|
#include <Kaleidoscope-TopsyTurvy.h>
|
|
|
|
static const Key topsyTurvyList[] PROGMEM = {
|
|
Key_1, Key_2, Key_3, Key_4, Key_5,
|
|
Key_6, Key_7, Key_8, Key_9, Key_0,
|
|
Key_NoKey
|
|
};
|
|
|
|
void setup () {
|
|
TopsyTurvy.configure (topsyTurvyList);
|
|
|
|
Kaleidoscope.setup ();
|
|
USE_PLUGINS (&TopsyTurvy);
|
|
}
|
|
```
|
|
|
|
The list of keys **must** be terminated with a `Key_NoKey`, and **must** reside
|
|
in `PROGMEM`.
|
|
|
|
## Plugin methods
|
|
|
|
The plugin provides the `TopsyTurvy` object, with the following methods:
|
|
|
|
### `.configure(list)`
|
|
|
|
> Tells `TopsyTurvy` to use the specified list of keys.
|
|
|
|
## Further reading
|
|
|
|
Starting from the [example][plugin:example] is the recommended way of getting
|
|
started with the plugin.
|
|
|
|
[plugin:example]: https://github.com/keyboardio/Kaleidoscope-TopsyTurvy/blob/master/examples/TopsyTurvy/TopsyTurvy.ino
|