From 7c18dcf720e63284da9a7d7f101a6fece315bc04 Mon Sep 17 00:00:00 2001
From: Ammar Rasyad Chaeroel <ammarasyad@gmail.com>
Date: Sat, 11 May 2024 15:36:08 +0700
Subject: [PATCH] Basic android input

---
 Assets/Action/PlayerInput.cs           | 22 ++++++++++++++++++++++
 Assets/Action/PlayerInput.inputactions | 22 ++++++++++++++++++++++
 ProjectSettings/ProjectSettings.asset  |  4 ++--
 3 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/Assets/Action/PlayerInput.cs b/Assets/Action/PlayerInput.cs
index 2ac30be..4b8f9d6 100644
--- a/Assets/Action/PlayerInput.cs
+++ b/Assets/Action/PlayerInput.cs
@@ -244,6 +244,17 @@ public partial class @PlayerInput: IInputActionCollection2, IDisposable
                     ""isComposite"": false,
                     ""isPartOfComposite"": false
                 },
+                {
+                    ""name"": """",
+                    ""id"": ""4ccfabf2-4d9c-42e9-a3b2-84139ac9f50f"",
+                    ""path"": ""<Touchscreen>/delta"",
+                    ""interactions"": """",
+                    ""processors"": """",
+                    ""groups"": """",
+                    ""action"": ""MoveDirection"",
+                    ""isComposite"": false,
+                    ""isPartOfComposite"": false
+                },
                 {
                     ""name"": """",
                     ""id"": ""031edcd3-97ca-4e70-9aec-88e6c6587695"",
@@ -321,6 +332,17 @@ public partial class @PlayerInput: IInputActionCollection2, IDisposable
                     ""isComposite"": false,
                     ""isPartOfComposite"": false
                 },
+                {
+                    ""name"": """",
+                    ""id"": ""2931bbfd-6ee0-4361-a57e-2532dc3db0df"",
+                    ""path"": ""<Touchscreen>/touch*/Press"",
+                    ""interactions"": """",
+                    ""processors"": """",
+                    ""groups"": """",
+                    ""action"": ""Attack"",
+                    ""isComposite"": false,
+                    ""isPartOfComposite"": false
+                },
                 {
                     ""name"": """",
                     ""id"": ""1fbd979b-95de-4068-8a75-897a1236c0ff"",
diff --git a/Assets/Action/PlayerInput.inputactions b/Assets/Action/PlayerInput.inputactions
index 56f7b1f..aabd443 100644
--- a/Assets/Action/PlayerInput.inputactions
+++ b/Assets/Action/PlayerInput.inputactions
@@ -222,6 +222,17 @@
                     "isComposite": false,
                     "isPartOfComposite": false
                 },
+                {
+                    "name": "",
+                    "id": "4ccfabf2-4d9c-42e9-a3b2-84139ac9f50f",
+                    "path": "<Touchscreen>/delta",
+                    "interactions": "",
+                    "processors": "",
+                    "groups": "",
+                    "action": "MoveDirection",
+                    "isComposite": false,
+                    "isPartOfComposite": false
+                },
                 {
                     "name": "",
                     "id": "031edcd3-97ca-4e70-9aec-88e6c6587695",
@@ -299,6 +310,17 @@
                     "isComposite": false,
                     "isPartOfComposite": false
                 },
+                {
+                    "name": "",
+                    "id": "2931bbfd-6ee0-4361-a57e-2532dc3db0df",
+                    "path": "<Touchscreen>/touch*/Press",
+                    "interactions": "",
+                    "processors": "",
+                    "groups": "",
+                    "action": "Attack",
+                    "isComposite": false,
+                    "isPartOfComposite": false
+                },
                 {
                     "name": "",
                     "id": "1fbd979b-95de-4068-8a75-897a1236c0ff",
diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset
index f6b7702..747d851 100644
--- a/ProjectSettings/ProjectSettings.asset
+++ b/ProjectSettings/ProjectSettings.asset
@@ -58,8 +58,8 @@ PlayerSettings:
   iosShowActivityIndicatorOnLoading: -1
   androidShowActivityIndicatorOnLoading: -1
   iosUseCustomAppBackgroundBehavior: 0
-  allowedAutorotateToPortrait: 1
-  allowedAutorotateToPortraitUpsideDown: 1
+  allowedAutorotateToPortrait: 0
+  allowedAutorotateToPortraitUpsideDown: 0
   allowedAutorotateToLandscapeRight: 1
   allowedAutorotateToLandscapeLeft: 1
   useOSAutorotation: 1
-- 
GitLab