exch-bms2 / beatoraja

Cross-platform rhythm game based on Java and libGDX.
GNU General Public License v3.0
642 stars 148 forks source link

fix controller availability in keyconfig and play state #807

Closed sr8e closed 3 months ago

sr8e commented 4 months ago

問題 issue

選曲画面で読み込まれたControllerConfigの状態がそのまま残っているので、キーコンフィグおよびプレイにおいてコントローラがdisabledのままになっている。 PlayerConfig.musicselectinput0(iidx sp)か1(pop'n)のとき、選曲画面でコントローラが1つしかenabledにならないので、その状態でキーコンフィグ設定やDPをプレイをしようとすると、2つ目以降のコントローラの入力を受け付けなくなる。 PlayerConfig.musicselectinput2(iidx dp)でも、選曲画面でコントローラが2つしかenabledにならないので、コントローラが3つ以上接続されている場合、3つ目以降のコントローラにキーを設定できない。

The availabilities of controllers set in music select are not properly cleared and remain in keyconfig and play. WhenPlayerConfig.musicselectinput is 0 (iidx sp) or 1 (pop'n), only one controller is enabled in music select, thus the other controllers are ignored in keyconfig or DP play. Even when PlayerConfig.musicselectinput is 2 (iidx dp), just two controllers are enabled in music select, so you cannot assign keys to third or later controllers.

変更 changes