Merge pull request #442 from keyboardio/oneshot/cancel-simplify

Oneshot: use default value to overload for cancel
pull/443/head
Jesse Vincent 6 years ago committed by GitHub
commit 8cb7e2c00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,10 +42,7 @@ class OneShot : public kaleidoscope::Plugin {
} }
static bool isActive(Key key); static bool isActive(Key key);
static bool isSticky(Key key); static bool isSticky(Key key);
static void cancel(bool with_stickies); static void cancel(bool with_stickies = false);
static void cancel(void) {
cancel(false);
}
static uint16_t time_out; static uint16_t time_out;
static int16_t double_tap_time_out; static int16_t double_tap_time_out;
static uint16_t hold_time_out; static uint16_t hold_time_out;

Loading…
Cancel
Save