From 3583e2ba3b66a315faec5ecb8dec35d3d773d66e Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 26 Feb 2023 02:52:10 +1100 Subject: [PATCH] Add arrow keys and controller movement --- Assets/PlayerInputActions.cs | 66 ++++++++++++++++++++++++++ Assets/PlayerInputActions.inputactions | 66 ++++++++++++++++++++++++++ 2 files changed, 132 insertions(+) diff --git a/Assets/PlayerInputActions.cs b/Assets/PlayerInputActions.cs index ef7e4bd..4297a7b 100644 --- a/Assets/PlayerInputActions.cs +++ b/Assets/PlayerInputActions.cs @@ -92,6 +92,72 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true + }, + { + ""name"": ""Arrow Keys"", + ""id"": ""41067e1b-7556-4806-b090-a0effd225b25"", + ""path"": ""2DVector"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Move"", + ""isComposite"": true, + ""isPartOfComposite"": false + }, + { + ""name"": ""up"", + ""id"": ""2146b330-9195-4396-bb39-b9d574a68718"", + ""path"": ""/upArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""down"", + ""id"": ""29b9100c-545c-46dc-8cc9-b3f55a3391b1"", + ""path"": ""/downArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""left"", + ""id"": ""762a00f5-8219-453d-bbd2-1e71cc737423"", + ""path"": ""/leftArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""right"", + ""id"": ""c94bdf9b-0335-4ec6-ab19-22116bd0be8f"", + ""path"": ""/rightArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": """", + ""id"": ""545341dc-a1a1-47e8-a08d-84a68957f048"", + ""path"": ""/leftStick"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Move"", + ""isComposite"": false, + ""isPartOfComposite"": false } ] } diff --git a/Assets/PlayerInputActions.inputactions b/Assets/PlayerInputActions.inputactions index 8bdff39..f730c98 100644 --- a/Assets/PlayerInputActions.inputactions +++ b/Assets/PlayerInputActions.inputactions @@ -70,6 +70,72 @@ "action": "Move", "isComposite": false, "isPartOfComposite": true + }, + { + "name": "Arrow Keys", + "id": "41067e1b-7556-4806-b090-a0effd225b25", + "path": "2DVector", + "interactions": "", + "processors": "", + "groups": "", + "action": "Move", + "isComposite": true, + "isPartOfComposite": false + }, + { + "name": "up", + "id": "2146b330-9195-4396-bb39-b9d574a68718", + "path": "/upArrow", + "interactions": "", + "processors": "", + "groups": "", + "action": "Move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "down", + "id": "29b9100c-545c-46dc-8cc9-b3f55a3391b1", + "path": "/downArrow", + "interactions": "", + "processors": "", + "groups": "", + "action": "Move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "left", + "id": "762a00f5-8219-453d-bbd2-1e71cc737423", + "path": "/leftArrow", + "interactions": "", + "processors": "", + "groups": "", + "action": "Move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "right", + "id": "c94bdf9b-0335-4ec6-ab19-22116bd0be8f", + "path": "/rightArrow", + "interactions": "", + "processors": "", + "groups": "", + "action": "Move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "", + "id": "545341dc-a1a1-47e8-a08d-84a68957f048", + "path": "/leftStick", + "interactions": "", + "processors": "", + "groups": "", + "action": "Move", + "isComposite": false, + "isPartOfComposite": false } ] }