C-buttons on standard mapping (R2+face buttons) do not work

オープン 初心者向け
#855 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
game-dev

調査の方向性

まず、libretro/libretro.c と mupen64plus-core/src/plugin/emulate_game_controller_via_libretro.c における r_cbutton の宣言と使用箇所を確認し、次にリンク先の libretro.c の位置で、Mupen64Plus が対応する値をコアオプションからどのように初期化しているかを比較します。標準のマッピング経路を確認し、4つすべてのCボタン変数が一貫して初期化されることを確かめます。標準のマッピングで未初期化の値が使われなくなれば完了です。

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

説明

Root cause seems to be the respective variables in the code not being initialized.

This is only for standard mapping (i.e., does not seem to apply to independent C-buttons mapping). Taking the right C-button as an example:

parallel-n64$ git rev-parse @
e0ef5d673257e2e83bf9b7cffe62eda141af8493

parallel-n64$ git grep "r_cbutton"
libretro/libretro.c:int r_cbutton, l_cbutton, d_cbutton, u_cbutton;
mupen64plus-core/src/plugin/emulate_game_controller_via_libretro.c:extern int r_cbutton;
mupen64plus-core/src/plugin/emulate_game_controller_via_libretro.c:         Keys->R_CBUTTON = !!((ret & (1 << r_cbutton)));
tools/test_mouse_accum.c:int r_cbutton, l_cbutton, d_cbutton, u_cbutton;

Mupen64Plus initializes the same values from core options:

Core options definitions: https://github.com/libretro/mupen64plus-libretro-nx/blob/15bada85906593376e8fd697f1b0b3af3a20f512/libretro/libretro_core_options.h#L1586
Initialization in libretro.c: https://github.com/libretro/mupen64plus-libretro-nx/blob/15bada85906593376e8fd697f1b0b3af3a20f512/libretro/libretro.c#L850

主要言語
C
スター
414
フォーク
155
平均マージ
1日 8時間
マージ済み PR(30日)
4

環境構築

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

はじめの一歩

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

libretro/parallel-n64 のほかの issue

libretro/parallel-n64 の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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