[過去ログ] 【ゲームエンジン】Unity初心者質問スレBuild2 (1002レス)
前次1-
抽出解除 レス栞

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
843
(1): 名前は開発中のものです。 [sage] 2019/12/31(火) 12:42:41.52 ID:CcuSFy9r(1) AAS
>>841
841(1): 名前は開発中のものです。 [sage] 2019/12/31(火) 09:24:48.90 ID:Y8q/9GVB(2/10) AAS
今、InputManager にかわる新しい入力システム InputSystem が出てたことを知った。
キーパッド入力部分のソースコード全部書き直せってか。
ぐぬぬ
大改修になるけど、今までキー入力のバッファリングが無くて不便だったのがやっと解決されるからアクションゲームとか作ってるなら乗り換えた方がいいよ
846: 名前は開発中のものです。 [sage] 2019/12/31(火) 18:06:11.29 ID:Y8q/9GVB(3/10) AAS
>>843 ありがとう、さっそく InputManager から InputSystem に換装してみた。

ゲームパッドは 8Bitdo N30 Pro 2 で検証。

【結果】
// Dpad:十字キー
Gamepad.current.dpad.up.isPressed
Gamepad.current.dpad.down.isPressed
Gamepad.current.dpad.left.isPressed
Gamepad.current.dpad.right.isPressed
⇒ XInput と DirectInput で同じキーが取れる。

// ボタン
Gamepad.current.aButton.isPressed
Gamepad.current.bButton.isPressed
Gamepad.current.xButton.isPressed
Gamepad.current.yButton.isPressed
⇒ XInput :(※N30 Pro 2のボタン表記では取れない)
 aButton → Bボタン
 bButton → Aボタン
 xButton → Yボタン
 yButton → Xボタン
⇒ DirectInput :
 aButton → Aボタン
 bButton → Bボタン
 xButton → Xボタン
 yButton → Yボタン
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.041s