# viveでxboxのコントローラーを使いたい。

**URL:** <https://forums.unrealengine.com/t/vive-xbox/422488>\
**Category:** XR Development\
**Tags:** Vive, xbox-controller, VR-Vive, unreal-engine, question\
**Created:** [April 13, 2018, 2:00am UTC](https://forums.unrealengine.com/t/vive-xbox/422488 "2018-04-13T02:00:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![itoart12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itoart12](https://forums.unrealengine.com/u/itoart12)\
**Post date:** [April 13, 2018, 2:00am UTC](https://forums.unrealengine.com/t/vive-xbox/422488/1 "2018-04-13T02:00:29Z")

</div>

VIVEでVRプレビューをしながらxboxのコントローラにインプットを送ることは可能でしょうか？  
プロジェクト設定のインプットを設定してもVIVEに接続していると反応xboxのコントローラーは反応がありません。VIVEとxboxのコントローラの二つを同時に使う方法はないのでしょうか？

---

<div class="post-metadata">

**Author:** ![T\_Sumisaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T\_Sumisaki](https://forums.unrealengine.com/u/T_Sumisaki)\
**Post date:** [April 14, 2018, 5:15am UTC](https://forums.unrealengine.com/t/vive-xbox/422488/2 "2018-04-14T05:15:44Z")

</div>

Vive接続中にXBoxコントローラの入力を取得することは可能です  
さらに言えば、ViveコントローラとXBoxコントローラを両方同時に使うことも可能です  
（質問のUE4のバージョン情報が書かれていませんが、UE4.19で確認しました）

入力イベント周りを見直してみてください

VRTemplateのMotionControllerMapを使用している場合は、 `Content/VirtualRealityBP/Blueprints/MotionControllerPawn` を見てみると良いでしょう

---

<div class="post-metadata">

**Author:** ![itoart12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itoart12](https://forums.unrealengine.com/u/itoart12)\
**Post date:** [April 17, 2018, 4:41am UTC](https://forums.unrealengine.com/t/vive-xbox/422488/3 "2018-04-17T04:41:27Z")

</div>

回答ありがとうございます。  
現状、UE4.19のVRTemplateを使って試してみたのですがうまくいきません。  
input axisにゲームパットAボタンを追加してMotionControllerPawnのブループリント上でPrint Stringに繋げたのですが反応が返ってきませんでした。  
上記の以外はデフォルトのままで試しております。  
他にチェックする項目があるのでしょうか？

---

<div class="post-metadata">

**Author:** ![paperbag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paperbag](https://forums.unrealengine.com/u/paperbag)\
**Post date:** [April 17, 2018, 5:33am UTC](https://forums.unrealengine.com/t/vive-xbox/422488/4 "2018-04-17T05:33:30Z")

</div>

ボタンの判定を使用する場合はAxis Mappingではなく、Action Mappingを使用されると良いでしょう。  
  
プロジェクト設定のInput、入力ノード呼び出しのスクリーンショットや  
  
PC環境などの情報があれば原因の特定がしやすくなります。

---

<div class="post-metadata">

**Author:** ![itoart12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itoart12](https://forums.unrealengine.com/u/itoart12)\
**Post date:** [April 17, 2018, 6:01am UTC](https://forums.unrealengine.com/t/vive-xbox/422488/5 "2018-04-17T06:01:53Z")

</div>

UE4関係なくドライバーの不調だったようです。ドライバーを入れなおしたところ解決しました。インプット設定やらノードやらばかり気にしてPC環境に目が行ってませんでした。  
ありがとうございます。
