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

未关闭
#660 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, cpp
领域
cli, devtools

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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!

主要语言
Python
星标
14.9k
派生
1.2k
平均合并
1 小时 58 分钟
30 天内合并 PR
40

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ItsNotRexed/Leonida 的其他 Issue

查看 ItsNotRexed/Leonida 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。