Загрузка данных


if starting:
    diagnostics.debug("=== SnapTap (SOCD) A/D System Active ===")
    prev_a = False
    prev_d = False

# Правильный метод проверки нажатия в FreePIE называется getKey
current_a = keyboard.getKey(Key.A)
current_d = keyboard.getKey(Key.D)

if current_a and current_d:
    if current_d and not prev_d:
        diagnostics.debug("Conflict: A & D pressed together. Prioritizing D.")
        keyboard.setKey(Key.A, KeyState.Up)
    elif current_a and not prev_a:
        diagnostics.debug("Conflict: A & D pressed together. Prioritizing A.")
        keyboard.setKey(Key.D, KeyState.Up)

prev_a = current_a
prev_d = current_d