From 1a213108c65ed20d188348add971eabd64cdcfb7 Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Thu, 11 Sep 2025 15:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5PSVita=E8=83=8C=E9=9D=A2?= =?UTF-8?q?=E8=A7=A6=E6=91=B8=E6=9D=BF=E4=BD=9C=E4=B8=BA=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E6=8C=89=E9=94=AE=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Manager/InputDevicesManager/Devices/PSVController_D.cs | 2 ++ .../InputDevicesManager/InputResolver/PSVResolver.cs | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/Devices/PSVController_D.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/Devices/PSVController_D.cs index aa9b0176..93bd45af 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/Devices/PSVController_D.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/Devices/PSVController_D.cs @@ -30,6 +30,8 @@ namespace AxibugEmuOnline.Client.InputDevices public Button_C Right; public Button_C Down; public Button_C Left; + public Button_C LeftBackTouch; + public Button_C RightBackTouch; public Stick_C LeftStick; public Stick_C RightStick; diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/InputResolver/PSVResolver.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/InputResolver/PSVResolver.cs index b13ac075..745b99b2 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/InputResolver/PSVResolver.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/InputDevicesManager/InputResolver/PSVResolver.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using AxiInputSP; +using System.Collections.Generic; using UnityEngine; namespace AxibugEmuOnline.Client.InputDevices.ForPSV @@ -48,6 +49,9 @@ namespace AxibugEmuOnline.Client.InputDevices.ForPSV else if (control == psvCon.Right) return Input.GetKey(KeyCode.Joystick1Button9); else if (control == psvCon.Down) return Input.GetKey(KeyCode.Joystick1Button10); else if (control == psvCon.Left) return Input.GetKey(KeyCode.Joystick1Button11); + else if (control == psvCon.LeftBackTouch) return AxiPSVBackTouchEmuKey.GetKey(AxiPSVBackTouchType.LeftHalf); + else if (control == psvCon.RightBackTouch) return AxiPSVBackTouchEmuKey.GetKey(AxiPSVBackTouchType.RigthHalf); + else if (control == psvCon.LeftStick || control == psvCon.RightStick) { var vec2 = control.GetVector2();