Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants