Added `setTimeout()` function to set the time limit in sketch

pull/389/head
Michael Richters 7 years ago
parent cb16b32215
commit d12a4870fe

@ -33,6 +33,7 @@ void setup() {
kaleidoscope::Qukey(0, 2, 3, Key_LeftControl), // D/ctrl kaleidoscope::Qukey(0, 2, 3, Key_LeftControl), // D/ctrl
kaleidoscope::Qukey(0, 2, 4, Key_LeftShift) // F/shift kaleidoscope::Qukey(0, 2, 4, Key_LeftShift) // F/shift
) )
Qukeys.setTimeout(200);
Kaleidoscope.setup(); Kaleidoscope.setup();
} }

@ -80,6 +80,9 @@ class Qukeys : public KaleidoscopePlugin {
static void deactivate(void) { static void deactivate(void) {
active_ = false; active_ = false;
} }
static void setTimeout(uint16_t time_limit) {
time_limit_ = time_limit;
}
static int8_t lookupQukey(uint8_t key_addr); static int8_t lookupQukey(uint8_t key_addr);
static void enqueue(uint8_t key_addr); static void enqueue(uint8_t key_addr);

Loading…
Cancel
Save