From 726a28d54e34de8aa777b9873c938e6d897a817e Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 2 Jan 2025 19:13:40 +0900 Subject: [PATCH] fix --- content/blog/2024-12-29-ue-ps5.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/content/blog/2024-12-29-ue-ps5.md b/content/blog/2024-12-29-ue-ps5.md index fdb09b0..541b682 100644 --- a/content/blog/2024-12-29-ue-ps5.md +++ b/content/blog/2024-12-29-ue-ps5.md @@ -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 you’re targeting PC, add the Microsoft.GameInput NuGet package (NuGet Gallery | Microsoft.GameInput 0.2303.22621.3038) to your solution. Run the NuGet package’s 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