[GH-ISSUE #1903] Idea: DualSense trigger effects and haptics settings on the SDL3 path (no Steam Input) #51

Open
opened 2026-11-26 20:16:03 +01:00 by 4ld0 · 0 comments
Owner

Originally created by @kawaii-shakal on GitHub (Nov 25, 2026).
Original GitHub issue: 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).

Originally created by @kawaii-shakal on GitHub (Nov 25, 2026). Original GitHub issue: 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).
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#51
No description provided.