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

オープン
#660 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。