Idea: DualSense trigger effects and haptics settings on the SDL3 path (no Steam Input) #1903

Open
opened 2026-11-26 10:10:39 +00:00 by github-bot · 0 comments
Owner

@⁠kawaii-shakal on GitHub · 2026-11-25 15:22 UTC · original

Not claimed, low priority. This is an idea for anyone who wants it.

What the game files show (1.0.2.1; counts and API names only):

  • No PS5 code in the executable. For input it imports only GameInput.dll. There is no libScePad, XInput or Steam API.
  • The data has a cross-platform UI for DualSense features. data.rpf holds per-context control layouts with PlayStation-style button names and a touchpad action, a controller test screen with rumble, haptic and adaptive-trigger elements, and settings entries for trigger resistance and vibration/haptics strength. common.rpf has named rumble curves. No per-weapon trigger effects were found in the archives scanned; levels, packs and story000 were not scanned.

Possible work, on the existing SDL3 path (runtime/shims/gameinput.cpp, LEONIDA_DS_TRIGGERS):

  1. On a real DualSense, check whether the title calls SetRumbleState with non-zero trigger levels. If it does, tune the LEONIDA_DS_TRIGGERS mapping: resistance or rumble, frequency, gain.
  2. Check whether the Xbox build reads the trigger-resistance and haptics-strength settings, for example from the menu entries' hashes in the executable. If it does, connect them to the DualSense trigger effect.
  3. Optional: light bar colour through SDL_SetGamepadLED. GameInput has no API for it, so this would be the layer's own feature.

Steam Input isn't worth building in.

  • SteamAPI_Init needs the Steam client running and an App ID.
  • steam_api64.dll comes under the Steamworks SDK agreement.
  • With Steam Input on, the DualSense is hidden behind a virtual pad, so SDL loses direct access to it.
  • SDL3 already covers rumble, trigger rumble, the DualSense effect report, LED, gyro and touchpad.
  • A user who wants Steam's remapping can add the game to Steam as a non-Steam shortcut.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠kawaii-shakal** on GitHub · 2026-11-25 15:22 UTC · [original](https://github.com/ubiquitarianism/leonida/issues/1903) Not claimed, low priority. This is an idea for anyone who wants it. **What the game files show** (1.0.2.1; counts and API names only): - **No PS5 code in the executable.** For input it imports only `GameInput.dll`. There is no libScePad, XInput or Steam API. - **The data has a cross-platform UI for DualSense features.** `data.rpf` holds per-context control layouts with PlayStation-style button names and a touchpad action, a controller test screen with rumble, haptic and adaptive-trigger elements, and settings entries for trigger resistance and vibration/haptics strength. `common.rpf` has named rumble curves. No per-weapon trigger effects were found in the archives scanned; `levels`, `packs` and `story000` were not scanned. **Possible work, on the existing SDL3 path** (`runtime/shims/gameinput.cpp`, `LEONIDA_DS_TRIGGERS`): 1. On a real DualSense, check whether the title calls `SetRumbleState` with non-zero trigger levels. If it does, tune the `LEONIDA_DS_TRIGGERS` mapping: resistance or rumble, frequency, gain. 2. Check whether the Xbox build reads the trigger-resistance and haptics-strength settings, for example from the menu entries' hashes in the executable. If it does, connect them to the DualSense trigger effect. 3. Optional: light bar colour through `SDL_SetGamepadLED`. GameInput has no API for it, so this would be the layer's own feature. **Steam Input isn't worth building in.** - `SteamAPI_Init` needs the Steam client running and an App ID. - `steam_api64.dll` comes under the Steamworks SDK agreement. - With Steam Input on, the DualSense is hidden behind a virtual pad, so SDL loses direct access to it. - SDL3 already covers rumble, trigger rumble, the DualSense effect report, LED, gyro and touchpad. - A user who wants Steam's remapping can add the game to Steam as a non-Steam shortcut. AI-assisted (Claude Code, Claude Opus 5.5).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:10:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida#1903
No description provided.