Gergely Nagy
c849113eea
Add CONTRIBUTING.md
...
Copied from Kaleidoscope, as it is applicable here too.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
2231ad0fdb
Assign my copyright to Keyboard.io
...
While the original plugin was written independently, significant developments
were made while working for Keyboard.io. As such, I feel it is appropriate to
assign copyright to the company.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
4c67169fd8
Relicense under the GPLv3 (only)
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
358a5572e5
Drop the V1 plugin API compatibility code
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
24d298d459
Override onSetup when using a compatibility layer
...
The default `onSetup` will call `.begin`, to support initializing plugins using
the V1 plugins while using `KALEIDOSCOPE_INIT_PLUGINS`. However, plugins that
implement a compatibility layer so that they can be used with both the new API,
and with `Kaleidoscope.use()` will have a `.begin` method too. Which the default
`onSetup` will call, and we'll register the compatibility layer too, in addition
to the new-style event handlers. This results in many things running twice,
which leads to all kinds of problems.
For this reason, override `onSetup`, so that it does not call `begin`. When used
with `Kaleidoscope.use()`, the plugin will still work, so compatibility is
maintained. But the bug is now gone.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
1844d88c76
Do not cancel OneShot if a oneshot is still held
...
Fixes #5 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
2a5ba8f6b2
Merge pull request #6 from keyboardio/f/plugin-v2
...
Updated to use the new plugin APIs
7 years ago
Gergely Nagy
33eb5cae03
Updated to use the new plugin APIs
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
62f619a5c4
Cancel stickies too
...
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
1d4834115b
Merge pull request #4 from TheBaronHimself/master
...
Mask escape key when pressed to cancel one shot
7 years ago
TheBaronHimself
8f4a34d4b9
Mask escape key when pressed to cancel one shot
7 years ago
Jesse Vincent
a4d6a814f2
Update Makefile with OSX fixes and new paths
7 years ago
Gergely Nagy
a57679c014
Stop using obsolete functions
...
Use `Kaleidoscope.use` and `Kaleidoscope.useEventHandlerHook` instead of the
obsolete `USE_PLUGINS` and `event_handler_hook_use` interfaces.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
6a80f8f059
Update Makefile to fix OS X build
7 years ago
Jesse Vincent
100c6f16fc
keyToggledO* camelcasing
7 years ago
Gergely Nagy
53435e0556
Update to work with the latest OneShot APIs
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
523cb38ff5
Kaleidoscope Style Guide conformance
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
31e2151cf7
virtual void begin(void) final is redunant and makes the linter unhappy
8 years ago
Jesse Vincent
f4d2efce5c
astyle with current project style guidelines
8 years ago
Jesse Vincent
1a9f3e1a33
make astyle
8 years ago
Jesse Vincent
5d6f385791
New build infrastructure
8 years ago
Jesse Vincent
92f0395284
Update example
8 years ago
Jesse Vincent
2ea24ad84c
Update for new Key defs
8 years ago
Gergely Nagy
7b890d8deb
Fix the example
...
Don't use `OneShot.enableAuto()`, it has been removed.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b498ce6fd1
README: Add a "Dependencies" section
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
46677e91e1
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
916f69889e
The Big Rename
...
Rename the library to Kaleidoscope-Escape-OneShot, and follow up with other
renames.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
84b2b6ad62
Use the new, double-add protected hook functions
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
dcd9b641d8
Drop Key_LEDEffectNext from the example
...
We do not use LEDs in the example, drop the use of the next effect key
accordingly.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
413ddf5e90
Mark the plugin stable
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
841be32f06
Add an example
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
9ddcbe11dd
Move to the keyboardio organization
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
c1d540988d
Initial import
...
Lifted out from algernon/Model01-Sketch.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago