Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

SDL3 Requires Better Device References To Avoid Buggy Behavior (Name instead of index)

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
cpp
領域
game-dev

調査の方向性

まず、SDL3 のモニターとジョイスティックがセッション間でどのように参照されているかを追跡し、インデックス、ID、名前、ジョイスティック GUID に特に注意を払います。デバイス参照がセッション固有の順序に依存しなくなり、ジョイスティック設定参照を変更した場合の互換性への影響が把握できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Breaks Compat bug library

"Basically IDs shouldn't be used to reference anything between sessions. It was that way in SDL2 as well, but IDs and indexes got used to reference devices because SDL2 maintained a fairly consistent list order (a hold-over from bad SDL1 design). SDL3 dropped that bad behavior.

This issue here isn't specific to monitors though, it's all devices. Joysticks are another big one that required a bit of nuance, since they are referenced by index, but they're also referenced by GUID which allowed me to deal with it better (the joystick code now ignores the index and/or sets it to -1). Though I would like to change it to use both device name and GUID for joysticks at some point when/if we can agree to break config compatibility."

Originally posted by @notimaginative in https://github.com/scp-fs2open/fs2open.github.com/pull/7220#discussion_r3313743293

主要言語
C++
スター
488
フォーク
184
平均マージ
2日 9時間
マージ済み PR(30日)
40

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

scp-fs2open/fs2open.github.com のほかの issue

scp-fs2open/fs2open.github.com の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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