8000 feat(behaviors): add universal snap tap behavior for gaming SOCD by sqdbruh · Pull Request #2968 · zmkfirmware/zmk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(behaviors): add universal snap tap behavior for gaming SOCD #2968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sqdbruh
Copy link
@sqdbruh sqdbruh commented Jun 16, 2025

Implements SOCD (Simultaneous Opposing Cardinal Directions) functionality that provides competitive gaming advantages through "last key wins" behavior for opposing directional keys.

Features:

  • Universal syntax: &st <opposing_key> works with any key pair
  • Dynamic state management supports up to 16 key pairs simultaneously
  • Memory efficient: only stores state for active pairs
  • Gaming optimized: perfect for FPS strafing, platformer movement, MOBA control
  • Zero performance impact when behavior is not used

Usage example:
&st A D // A key with D as opposing key
&st W S // W key with S as opposing key

The behavior solves the problem where pressing opposing keys (like A+D) causes character to stop moving by automatically releasing the previous key when its opposing key is pressed, enabling instant direction changes without dead zones

Implements SOCD (Simultaneous Opposing Cardinal Directions) functionality
that provides competitive gaming advantages through "last key wins" behavior
for opposing directional keys.

Features:
- Universal syntax: &st <key> <opposing_key> works with any key pair
- Dynamic state management supports up to 16 key pairs simultaneously
- Memory efficient: only stores state for active pairs
- Gaming optimized: perfect for FPS strafing, platformer movement, MOBA control
- Zero performance impact when behavior is not used

Usage example:
&st A D    // A key with D as opposing key
&st W S    // W key with S as opposing key

The behavior solves the problem where pressing opposing keys (like A+D)
causes character to stop moving by automatically releasing the previous
key when its opposing key is pressed, enabling instant direction changes
without dead zones
@sqdbruh sqdbruh requested a review from a team as a code owner June 16, 2025 11:25
@lesshonor
Copy link
Contributor

related: #2391

@caksoylar
Copy link
Contributor

This seems a bit specific to me for a built-in behavior in ZMK. See modules like
https://github.com/nguyendown/zmk-behavior-socd for an out-of-tree implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0