Commit Graph

55 Commits (7456e0687d6d91d9f94d1ad0a24639e928e0821d)

Author SHA1 Message Date
Gergely Nagy b157236b04
Assign my copyright to Keyboard.io
6 years ago
Gergely Nagy 8bea721791
Relicense to GPLv3 (only)
6 years ago
Gergely Nagy 42eb00cc96 Drop the V1 plugin API compatibility code
6 years ago
Gergely Nagy 701e79d3dc Clear should_cancel_ when canceling stickiness with a third tap
6 years ago
Gergely Nagy b683383e22 Override onSetup when using a compatibility layer
6 years ago
Gergely Nagy c791e8163c Implement OneShot.isPressed()
7 years ago
Gergely Nagy d668dce127 Updated to use the new plugin APIs
7 years ago
Gergely Nagy 0c6054018f Allow one to set double-tap stickyness separately for OSM and OSL
7 years ago
Gergely Nagy dd80ab1abf Introduce a way to set the double-tap timeout separately
7 years ago
Gergely Nagy a5ceb5833a Use the triggering coordinates when injecting events
7 years ago
Gergely Nagy 4b6ca2fab3 Fix stickied OneShot clearing
7 years ago
Gergely Nagy 81179aaf0e Layer keys should not cancel OneShot
7 years ago
James N. V. Cash c44d80feef Call saveAsPrevious even if mod, to avoid triggering sticky key
7 years ago
James N. V. Cash 71dce27a48 Don't cancel one-shot if other key pressed is a modifier
7 years ago
David Glasser 2d0152e416 Expose OneShot.isSticky
7 years ago
Gergely Nagy 91971489cf Stop using deprecated interfaces
7 years ago
Gergely Nagy a5883b4b2e isActive() should take pressed & sticky states into consideration
7 years ago
Gergely Nagy e9c03b5fd8 Fix isActive(key)
7 years ago
Gergely Nagy 6fbcf4ec5d Add a `OneShot.isActive(key)` method
7 years ago
Gergely Nagy f39cb776a3 Lift out the `isOS` macro into `OneShot.isOneShotKey`.
7 years ago
Gergely Nagy 5cd5eab50d Use non-deprecated functions for event handler & loop hook registration
7 years ago
Gergely Nagy e64f489845 Make it possible to disable the double-tap-sticky feature
7 years ago
Gergely Nagy 810acd9842 When cancelling after hold timeout, turn should_cancel_ off too.
7 years ago
Gergely Nagy b1953f07a2 OSL: Flip the `should_mask_on_interrupt_` bit on OSL release, not press
7 years ago
Gergely Nagy 87fbf85995 eventHandlerHook: Compute the one-shot index early
7 years ago
Gergely Nagy 52c8402006 Do not mask one-shot modifiers, only layers
7 years ago
Gergely Nagy 37ac11bb49 Remove some unnecessary code
7 years ago
Gergely Nagy 2fe4ef3aee Held + normal key should prevent oneshot from firing
7 years ago
Gergely Nagy 85336c5172 Use the KeyboardHardware-provided key masking functions
7 years ago
Jesse Vincent 061047c52e
CamelCase of handle_*_key*
7 years ago
Jesse Vincent c09fcd9e67
CamelCase of KeyIsPressed and KeyWasPressed
7 years ago
Jesse Vincent b244cec410
keyToggledO* camelcasing
7 years ago
Gergely Nagy f79b3b5f7d Kaleidoscope Style Guide conformance
8 years ago
Jesse Vincent 3097fd0745
astyle to get us closer to cpplint-clean
8 years ago
Jesse Vincent a16411ff93
make astyle
8 years ago
Jesse Vincent c892b4a30a
Update OneShot library to use new key defs
8 years ago
Jesse Vincent 14ed3a2b18 Use UNKNOWN_KEYSWITCH_LOCATION rather than a magic value
8 years ago
Jesse Vincent a3def769a0 Update to new handle_keyswitch_event API naming
8 years ago
Gergely Nagy 8bf7ec9dc8 Migrate to a state struct, for future proofness
8 years ago
Gergely Nagy 7534c13475 Reduce the amount of supported OneShot layers
8 years ago
Gergely Nagy 188b4bc02c Drop on, off, and enableAuto
8 years ago
Gergely Nagy 28228d07c7 The Big Rename
8 years ago
Gergely Nagy 4396a9f405 Use proper timers instead of a loop counter
8 years ago
Gergely Nagy c7994fb33c Separate effect and held timeouts
8 years ago
Gergely Nagy da2bc4d656 Expose a way to set the timeOut
8 years ago
Gergely Nagy 5394fc834f Use the new, double-add protected hook functions
8 years ago
Gergely Nagy 59bc052301 Mask out interruptors
8 years ago
Gergely Nagy e1cee252d5 Fix isActive to be less strict
8 years ago
Gergely Nagy 7d024cabc0 Add an .isModifierActive method
8 years ago
Gergely Nagy 417ff1a07e OneShot: Allow chaining one-shots
8 years ago