Skip to content
avoidmemoriesPublic

About

SOCD: Snap Tap for any keyboard/game (CS2/ Faceit)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SnapHook

SOCD: Snappy Tappy resolves conflicts between two opposing keys, such as A and D. When both are held, the most recently pressed key wins and the older one is released automatically, so direction changes are faster and more precise. SnapHook adds this to any keyboard and offers several input methods, so it can work in many different games.

Preview


Quick start

  1. Start SnapHook.exe from the published folder and accept the Windows elevation prompt. Elevation is required so the keyboard hook can also see input sent to elevated games.
  2. Add a game profile. You can select an executable from disk or choose a currently running process.
  3. Open the profile, add one or more key pairs, and choose an input method.
  4. Turn the master switch to ACTIVE. A profile is active only while its matching process owns the foreground window.

The application can be hidden to the notification area. Use its tray menu to Activate/Deactivate the engine, return to the window, or exit cleanly.

Input methods

Every profile has its own input method. Release is the default and should be tried first.

Release — recommended

Release preserves the real keyboard stream. Physical key presses and releases are delivered to the game normally. When opposite directions overlap, Snaphook only injects a release for the older direction. After the newer direction is released, it injects a press to restore the older one.

  • Best default for most games.
  • Real keyboard input reaches the game unchanged. SnapHook only adds the release and restore events needed for SOCD.

Window — window-message delivery

This mode was created mainly for Counter-Strike 2 on FACEIT and official matchmaking, though it is not limited to them.

Window holds back a managed physical key and delivers its transitions directly to the active profile window as keyboard messages. It uses its own key-state stream, where a newly pressed opposing key is delivered before the older one is released.

  • Use it for applications that react to window keyboard messages rather than the normal keyboard stream.
  • It is profile-aware: no game name or window title is hard-coded.
  • Key pairs that involve Tab, Shift, Ctrl or Alt may stop working in the game when used with this method. This is a known limitation of Window, use another input method for such pairs.

Hybrid — macro-friendly

Hybrid provides the same release-and-restore SOCD behaviour, but receives physical keyboard events through Windows Raw Input instead of installing a global low-level keyboard hook. This keeps SnapHook out of the hook chain used by AHK, macro pads, accessibility tools, virtual keyboards, and similar applications.

  • Use it when macros become unreliable while a SnapHook pair is configured or while one of the pair keys is held.
  • Real key presses still reach the game. SnapHook only adds synthetic events when it needs to release or restore the opposite key.
  • After restoring a key, Hybrid sends a final synthetic key release when you physically release it. This prevents stuck movement if another keyboard hook delays event delivery.
  • It is intended for profiles that need macro compatibility.

Timing

The Timing button is available for the Window method. It contains three independent experiments. They do not have to be enabled together. One option, or two, may be enough for a particular game and configuration. Gap and Overlap work on official CS2 matchmaking servers. In practice, either one enabled by itself can be enough to avoid a kick caused by the input pattern. Official servers can change their detection or rules at any time.

You can experiment with the values yourself. The minimum and maximum values are inclusive, and a random value is chosen inside that range for each event that uses the option.

Gap

Gap creates a short empty interval when a new direction is pressed. The chance field controls how often the interval is used: 70% means that roughly seven out of ten eligible new presses receive the delay. When it triggers, SnapHook releases the currently active opposing direction first, then waits a random time between the configured minimum and maximum milliseconds before delivering the new direction. If the new key is released before that time expires, its delayed press is cancelled rather than reviving a key that is no longer held.

Overlap

Overlap intentionally keeps a short overlap during selected direction switches. The new direction is delivered immediately, while the old direction is released after a random delay from the configured range. The Every setting chooses the interval: 5 means every fifth eligible switch uses this delayed release. The other switches use the normal immediate release. This creates a controlled overlap without delaying every key press.

Cadence (experimental)

Cadence is experimental and should be tested carefully. It places physical press and release events into an ordered queue and gives each queued event a random delay from the configured millisecond window. A new event is not processed until earlier queued events have reached their scheduled time, so fast input can be visibly delayed. Keyboard auto-repeat also produces events, which can make a large window leave movement active briefly after a key is released. For that reason, start with a small range and use it only when you understand the trade-off.

Compatibility Notes

SnapHook works with many games. Notable popular titles include:

  • Counter-Strike 2 was tested both on community servers and official matchmaking. Community servers usually do not complain when the normal Window method is used without any Timing functions. Official matchmaking may still kick a player after detecting automated input, so enable the Gap or Overlap mode in the Timing tab when playing there.

  • FACEIT works when using the Window input method.

  • Valorant

  • Overwatch

  • Apex Legends

  • PUBG

  • Deadlock

  • Rocket League

  • Marvel Rivals

  • GTA V Legacy/Enhanced

Building

dotnet publish SnapHook.csproj -c Release -r win-x64 --self-contained false -p:PublishSingleFile=false -p:DebugType=none -o publish

The native worker is compiled automatically when Native/SnapHookWorker.exe is missing. To force a rebuild:

dotnet build -p:RebuildNativeWorker=true

Requires the .NET 10 SDK and MSVC (Visual Studio 2022 or 2026 with the C++ workload). Native/build-worker.cmd locates VsDevCmd.bat on its own.

Where things are stored

User data lives in %APPDATA%\SnapHook\:

  • settings.json — profiles, key pairs, options

Limits worth knowing

  • Extended keys (arrows, numpad enter, right Ctrl/Alt, Insert/Home/PgUp) need KEYEVENTF_EXTENDEDKEY. The worker sets it from the real event flags.
  • Left and right modifiers are kept apart by learning the virtual key from the genuine event rather than from MapVirtualKey, which is layout dependent.
  • Competitive rulesets in some titles treat snap tap as prohibited automation. That is a rules question, not a technical one: use it where you are actually allowed to.

About

SOCD: Snap Tap for any keyboard/game (CS2/ Faceit)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages