Move KeyAddrEventQueue class from Qukeys to Kaleidoscope core

It's now being used by more than one plugin, and is likely to get used by at
least a third, if not more.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 4 years ago
parent 4fe4b2ef30
commit add3ab4e83
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -20,7 +20,7 @@
#include "kaleidoscope/Runtime.h" #include "kaleidoscope/Runtime.h"
#include <Kaleidoscope-Ranges.h> #include <Kaleidoscope-Ranges.h>
#include "kaleidoscope/plugin/Qukeys/KeyAddrEventQueue.h" #include "kaleidoscope/KeyAddrEventQueue.h"
// DualUse Key definitions for Qukeys in the keymap // DualUse Key definitions for Qukeys in the keymap
#define MT(mod, key) Key( \ #define MT(mod, key) Key( \

@ -20,7 +20,7 @@
#include "kaleidoscope/Runtime.h" #include "kaleidoscope/Runtime.h"
#include "kaleidoscope/LiveKeys.h" #include "kaleidoscope/LiveKeys.h"
#include <Kaleidoscope-Ranges.h> #include <Kaleidoscope-Ranges.h>
#include "kaleidoscope/plugin/Qukeys/KeyAddrEventQueue.h" #include "kaleidoscope/KeyAddrEventQueue.h"
#define TD(n) Key(kaleidoscope::ranges::TD_FIRST + n) #define TD(n) Key(kaleidoscope::ranges::TD_FIRST + n)

@ -25,7 +25,6 @@
#include "kaleidoscope/keyswitch_state.h" #include "kaleidoscope/keyswitch_state.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin {
// This class defines a keyswitch event queue that stores both press and release // This class defines a keyswitch event queue that stores both press and release
// events, recording the key address, a timestamp, and the keyswitch state // events, recording the key address, a timestamp, and the keyswitch state
@ -125,5 +124,4 @@ class KeyAddrEventQueue {
} }
}; };
} // namespace plugin
} // namespace kaleidoscope } // namespace kaleidoscope
Loading…
Cancel
Save