24 #define OSM(kc) (Key) {.raw = kaleidoscope::ranges::OSM_FIRST + (Key_ ## kc).keyCode - Key_LeftControl.keyCode} 25 #define OSL(n) (Key) {.raw = kaleidoscope::ranges::OSL_FIRST + n} 33 void begin(
void)
final;
36 static void cancel(
bool with_stickies);
55 static uint32_t start_time_;
56 static state_t state_;
57 static state_t sticky_state_;
58 static state_t pressed_state_;
60 static bool should_cancel_;
61 static bool should_cancel_stickies_;
62 static bool should_mask_on_interrupt_;
64 static void injectNormalKey(uint8_t idx, uint8_t key_state);
65 static void activateOneShot(uint8_t idx);
66 static void cancelOneShot(uint8_t idx);
68 static Key eventHandlerHook(
Key mapped_key, byte
row, byte
col, uint8_t key_state);
69 static void loopHook(
bool is_post_clear);
static bool isActive(void)
Definition: OneShot.cpp:210
static uint16_t hold_time_out
Definition: OneShot.h:41
byte byte col
Definition: TapDance.cpp:229
Definition: key_defs.h:13
void begin(void) final
Definition: OneShot.cpp:205
void inject(Key key, uint8_t key_state)
Definition: OneShot.cpp:226
static void cancel(void)
Definition: OneShot.h:37
OneShot(void)
Definition: OneShot.cpp:202
Definition: Kaleidoscope.h:40
byte row
Definition: TapDance.cpp:229
static uint16_t time_out
Definition: OneShot.h:40
static bool isModifierActive(Key key)
Definition: OneShot.cpp:214