A simple plugin that sends a shifted version of a key if that key has been held for long enough.
Installation of AutoShift
into your Kaleidoscope sketch is simple.
#include <Kaleidoscope.h>
#include <Kaleidoscope-AutoShift.h>
KALEIDOSCOPE_INIT_PLUGINS(AutoShift);
void setup() {
Kaleidoscope.setup();
}
AutoShift
has three member functions for controlling its behavior.
Enables the plugin.
Disables the plugin.
Change the shift-key delay to new_delay
. This is a positive integer value that represents time in milliseconds. By default, the delay is set to 500ms.
The plugin also has two member functions for determining its state.
Returns true
if the plugin is enabled.
Returns an unsigned, 16-bit integer representing the current shift-key delay period, in milliseconds.