WIP Beta released Beam DSX - DualSense haptic feedback [profiles/multilanguage/gui/ds4/career supported]

Discussion in 'Utilities and programming' started by Feche, Apr 8, 2025.

  1. blackrose

    blackrose
    Expand Collapse

    Joined:
    Dec 12, 2025
    Messages:
    3
    that's not really what im asking but thanks for trying to understand.

    edit: to expand on my point: I want the brake trigger to rapidly vibrate or stiffen (if possible) the moment that your brakes lock up. i.e, you are pressing on the brake hard enough to make your wheels stop spinning (NOT when ABS activates, as you already have implemented well).

    This would be useful for cars without ABS, to feel exactly when you are braking too hard. the mod DSX - DualSense Adaptive Triggers, specifically this function:


    Code:
    local function handleLeftTrigger()
        local absActive = state.isABSActive and (socket.gettime() - state.absActivationTime) > CONFIG.ABS_WAIT_TIME
    
        if absActive and CONFIG.ENABLE_ABS then
            return {
                type = Triggers.InstructionType.TriggerUpdate,
                parameters = {CONFIG.CONTROLLER_INDEX, Triggers.Trigger.Left, Triggers.TriggerMode.CustomTriggerValue,
                              Triggers.CustomTriggerValueMode.VibrateResistance, CONFIG.ABS_VIBRATION_FREQUENCY, 1, 0, 0, 0,
                              0, 0}
            }
        else
            local isWheelSlip = state.wheelSlip > CONFIG.BRAKE_SLIP_THRESHOLD and 1 or 0
    
            if isWheelSlip == 1 and state.brake > 0.1 and CONFIG.ENABLE_BRAKE_SLIP then
                return {
                    type = Triggers.InstructionType.TriggerUpdate,
                    parameters = {CONFIG.CONTROLLER_INDEX, Triggers.Trigger.Left, Triggers.TriggerMode.CustomTriggerValue,
                                  Triggers.CustomTriggerValueMode.VibrateResistance, CONFIG.BRAKE_SLIP_VIBRATION_FREQUENCY,
                                  1, 0, 0, 0, 0, 0}
                }
            else
                return {
                    type = Triggers.InstructionType.TriggerUpdate,
                    parameters = {CONFIG.CONTROLLER_INDEX, Triggers.Trigger.Left, Triggers.TriggerMode.CustomTriggerValue,
                                  Triggers.CustomTriggerValueMode.Rigid, CONFIG.BRAKE_VALUE_MIN * 255,
                                  calculateCombinedForce(state.brake, state.airSpeedKmh), 0, 0, 0, 0, 0}
                }
            end
        end
    end
    I'd love to see more improvements to this mod. Thanks for taking your time for this
     
    #21 blackrose, Mar 1, 2026
    Last edited: Mar 7, 2026
  2. Pr9tkin

    Pr9tkin
    Expand Collapse

    Joined:
    Jan 28, 2022
    Messages:
    580
    hi) the mod is great, but the "slip tolerance" setting, even when set to "0", gives feedback at extremely high RPMs, when it's too late! Could you please fix this? so that when set to "0", the triggers on the gamepad are triggered at the slightest wheel slip
    upload_2026-3-2_0-11-48.png
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice