Feature Request: Use SDL3 as the backend for the GameInput shim (DualSense & gyro support)

Aperta
#660 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, cpp
Ambito
cli, devtools

Direzione di ricerca

This is a feature request to back the GameInput shim with SDL3 and later feed gyro sensor data into aiming. The payload names no source files, tests or entry points, so start by finding where the GameInput shim is implemented in the repository. Done would need a design decision from maintainers on the SDL3 backend first, which is why this is not a good first issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi! Since Leonida has to shim/reimplement Xbox's GameInput API for PC, would you consider backing the GameInput layer with SDL3?

Why SDL3:

  • Native multi-controller support: DualSense, DualShock 4, Switch Pro, Xbox, Steam Deck, etc. work out of the box without needing DS4Windows or Steam Input.
  • Sensor & DualSense features: SDL3 exposes SDL_SENSOR_GYRO / SDL_SENSOR_ACCEL (plus rumble/LEDs/touchpad) through a single unified API, whereas Windows GameInput doesn't expose gyro on most third-party controllers.

Regarding gyro aiming:
I know simply swapping the GameInput backend to SDL3 won't automatically give the game gyro (since the Xbox binary itself doesn't read GameInputMotionState for aiming), so this would be a two-part thing:

  1. Back the GameInput shim with SDL3 for broad controller support and sensor access.
  2. Down the line (once camera/mouse look hooks are in place), optionally feed SDL_SENSOR_GYRO deltas directly into the camera/aiming input (or mouse look) for true mouse-like gyro aiming—with a simple toggle/sensitivity config (e.g., gyro active on ADS/L2).

Thanks for all the work on the project!

Lingua principale
Python
Stelle
14.9k
Fork
1.2k
Merge medio
1h 58m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ItsNotRexed/Leonida

Tutte le issue di ItsNotRexed/Leonida

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.