From 790cab5a264095aec2c6ff5b5a22a09652cb172e Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 13 Aug 2023 17:38:44 +1000 Subject: [PATCH] boost gamepad binds --- Assets/Resources/SpaceRaceInput.inputactions | 76 +++++++++++++------- Assets/Src/ShipInput.cs | 76 +++++++++++++------- 2 files changed, 98 insertions(+), 54 deletions(-) diff --git a/Assets/Resources/SpaceRaceInput.inputactions b/Assets/Resources/SpaceRaceInput.inputactions index 97f81bd..a6d7a38 100755 --- a/Assets/Resources/SpaceRaceInput.inputactions +++ b/Assets/Resources/SpaceRaceInput.inputactions @@ -154,8 +154,8 @@ }, { "name": "", - "id": "7bde4731-2ad0-45f2-9fcf-b8a20a6ee7ac", - "path": "/buttonEast", + "id": "d60de7d6-2aee-4d11-8378-8f175ea100a0", + "path": "/leftShoulder", "interactions": "", "processors": "", "groups": "", @@ -165,30 +165,8 @@ }, { "name": "", - "id": "6cb625e2-60f3-49d5-9d12-8265a4aab0a4", - "path": "/buttonSouth", - "interactions": "", - "processors": "", - "groups": "", - "action": "respawn", - "isComposite": false, - "isPartOfComposite": false - }, - { - "name": "", - "id": "b3126289-9c10-4247-9cee-bf97a20f429b", - "path": "/buttonWest", - "interactions": "", - "processors": "", - "groups": "", - "action": "respawn", - "isComposite": false, - "isPartOfComposite": false - }, - { - "name": "", - "id": "c87398b5-3170-4be8-80b3-b6304e61bba4", - "path": "/buttonNorth", + "id": "f04d169d-e864-4573-8b6f-051a0b3aedf5", + "path": "/rightShoulder", "interactions": "", "processors": "", "groups": "", @@ -344,7 +322,7 @@ "id": "55976656-0c45-48bc-8c60-bdd71583f463", "path": "/rightStick", "interactions": "", - "processors": "ScaleVector2(x=0.75,y=0.75)", + "processors": "ScaleVector2", "groups": "", "action": "look", "isComposite": false, @@ -361,6 +339,28 @@ "isComposite": false, "isPartOfComposite": false }, + { + "name": "", + "id": "6cb625e2-60f3-49d5-9d12-8265a4aab0a4", + "path": "/buttonSouth", + "interactions": "", + "processors": "", + "groups": "", + "action": "powerUnit1", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "7bde4731-2ad0-45f2-9fcf-b8a20a6ee7ac", + "path": "/buttonEast", + "interactions": "", + "processors": "", + "groups": "", + "action": "powerUnit2", + "isComposite": false, + "isPartOfComposite": false + }, { "name": "", "id": "18e2e44e-8735-45ce-aad2-b75c212fc4dc", @@ -393,6 +393,28 @@ "action": "powerUnit4", "isComposite": false, "isPartOfComposite": false + }, + { + "name": "", + "id": "b3126289-9c10-4247-9cee-bf97a20f429b", + "path": "/buttonWest", + "interactions": "", + "processors": "", + "groups": "", + "action": "powerUnit3", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "c87398b5-3170-4be8-80b3-b6304e61bba4", + "path": "/buttonNorth", + "interactions": "", + "processors": "", + "groups": "", + "action": "powerUnit4", + "isComposite": false, + "isPartOfComposite": false } ] }, diff --git a/Assets/Src/ShipInput.cs b/Assets/Src/ShipInput.cs index 9debde9..78816ff 100755 --- a/Assets/Src/ShipInput.cs +++ b/Assets/Src/ShipInput.cs @@ -176,8 +176,8 @@ public partial class @SpaceRaceInput: IInputActionCollection2, IDisposable }, { ""name"": """", - ""id"": ""7bde4731-2ad0-45f2-9fcf-b8a20a6ee7ac"", - ""path"": ""/buttonEast"", + ""id"": ""d60de7d6-2aee-4d11-8378-8f175ea100a0"", + ""path"": ""/leftShoulder"", ""interactions"": """", ""processors"": """", ""groups"": """", @@ -187,30 +187,8 @@ public partial class @SpaceRaceInput: IInputActionCollection2, IDisposable }, { ""name"": """", - ""id"": ""6cb625e2-60f3-49d5-9d12-8265a4aab0a4"", - ""path"": ""/buttonSouth"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""respawn"", - ""isComposite"": false, - ""isPartOfComposite"": false - }, - { - ""name"": """", - ""id"": ""b3126289-9c10-4247-9cee-bf97a20f429b"", - ""path"": ""/buttonWest"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""respawn"", - ""isComposite"": false, - ""isPartOfComposite"": false - }, - { - ""name"": """", - ""id"": ""c87398b5-3170-4be8-80b3-b6304e61bba4"", - ""path"": ""/buttonNorth"", + ""id"": ""f04d169d-e864-4573-8b6f-051a0b3aedf5"", + ""path"": ""/rightShoulder"", ""interactions"": """", ""processors"": """", ""groups"": """", @@ -366,7 +344,7 @@ public partial class @SpaceRaceInput: IInputActionCollection2, IDisposable ""id"": ""55976656-0c45-48bc-8c60-bdd71583f463"", ""path"": ""/rightStick"", ""interactions"": """", - ""processors"": ""ScaleVector2(x=0.75,y=0.75)"", + ""processors"": ""ScaleVector2"", ""groups"": """", ""action"": ""look"", ""isComposite"": false, @@ -383,6 +361,28 @@ public partial class @SpaceRaceInput: IInputActionCollection2, IDisposable ""isComposite"": false, ""isPartOfComposite"": false }, + { + ""name"": """", + ""id"": ""6cb625e2-60f3-49d5-9d12-8265a4aab0a4"", + ""path"": ""/buttonSouth"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""powerUnit1"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""7bde4731-2ad0-45f2-9fcf-b8a20a6ee7ac"", + ""path"": ""/buttonEast"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""powerUnit2"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, { ""name"": """", ""id"": ""18e2e44e-8735-45ce-aad2-b75c212fc4dc"", @@ -415,6 +415,28 @@ public partial class @SpaceRaceInput: IInputActionCollection2, IDisposable ""action"": ""powerUnit4"", ""isComposite"": false, ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""b3126289-9c10-4247-9cee-bf97a20f429b"", + ""path"": ""/buttonWest"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""powerUnit3"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""c87398b5-3170-4be8-80b3-b6304e61bba4"", + ""path"": ""/buttonNorth"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""powerUnit4"", + ""isComposite"": false, + ""isPartOfComposite"": false } ] },