1
0
This commit is contained in:
syui 2025-01-02 19:13:40 +09:00
parent 9d55e2b558
commit 726a28d54e
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -4,10 +4,16 @@ tags = ["ue"]
title = "ue5.5.1でps5 controllerを使う"
+++
基本的には`Game Input for Windows`というpluginを使います。しかし、問題は動かないことです。
基本的には`Game Input for Windows`というpluginを使います。
- https://dev.epicgames.com/community/learning/tutorials/EpZ4/unreal-engine-game-input-for-windows-experimental-release-notes
- https://forums.unrealengine.com/t/tutorial-game-input-for-windows-experimental-release-notes/1763696
```sh:$project/Config/DefaultInput.ini
[/Script/GameInputBase.GameInputDeveloperSettings]
+DeviceConfigurations=(DeviceIdentifier=(VendorId=1356,ProductId=3302),Description="PS5 DualSense controller",bOverrideHardwareDeviceIdString=True,OverriddenHardwareDeviceId="DualSense",bProcessControllerButtons=True,bProcessControllerSwitchState=True,bProcessControllerAxis=True,ControllerButtonMappingData=((1, "Gamepad_FaceButton_Left"),(2, "Gamepad_FaceButton_Bottom"),(4, "Gamepad_FaceButton_Right"),(8, "Gamepad_FaceButton_Top"),(16, "Gamepad_LeftShoulder"),(32, "Gamepad_RightShoulder"),(64, "Gamepad_LeftTrigger"),(128, "Gamepad_RightTrigger"),(256, "Gamepad_Special_Left"),(512, "Gamepad_Special_Right"),(1024, "Gamepad_LeftThumbstick"),(2048, "Gamepad_RightThumbstick"),(8192, "Gamepad_Special_Left")),ControllerAxisMappingData=((0, (KeyName="Gamepad_LeftX",DeadZone=0.239532,bIsPackedPositveAndNegative=True)),(1, (KeyName="Gamepad_LeftY",Scalar=-1.000000,bIsPackedPositveAndNegative=True)),(2, (KeyName="Gamepad_RightX",bIsPackedPositveAndNegative=True)),(3, (KeyName="Gamepad_LeftTriggerAxis")),(4, (KeyName="Gamepad_RightTriggerAxis",DeadZone=0.239532)),(5, (KeyName="Gamepad_RightY",Scalar=-1.000000,bIsPackedPositveAndNegative=True))))
```
しかし、問題は動かないことです。
> GAME_INPUT_SUPPORT is false!
@ -18,6 +24,8 @@ title = "ue5.5.1でps5 controllerを使う"
> If youre targeting PC, add the Microsoft.GameInput NuGet package (NuGet Gallery | Microsoft.GameInput 0.2303.22621.3038) to your solution. Run the NuGet packages GameInput redistributable MSI to ensure that you have the latest runtime. Although the runtime is included in Windows May 2020 Updates and later, running the MSI will ensure that you have the latest version.
> Include this redistributable in game installers to ensure that GameInput is available on all supported versions of Windows."
- https://forums.unrealengine.com/t/tutorial-game-input-for-windows-experimental-release-notes/1763696
ue5をsrcからbuildする方法です。
- https://dev.epicgames.com/documentation/ja-jp/unreal-engine/building-unreal-engine-from-source