-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
redappleUA
committed
Sep 16, 2022
0 parents
commit b1797db
Showing
56 changed files
with
2,674 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator | ||
// version 1.4.2 | ||
// from Assets/Input System/Cube Control.inputactions | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine.InputSystem; | ||
using UnityEngine.InputSystem.Utilities; | ||
|
||
public partial class @GeneratedCubeControl : IInputActionCollection2, IDisposable | ||
{ | ||
public InputActionAsset asset { get; } | ||
public @GeneratedCubeControl() | ||
{ | ||
asset = InputActionAsset.FromJson(@"{ | ||
""name"": ""Cube Control"", | ||
""maps"": [ | ||
{ | ||
""name"": ""Move"", | ||
""id"": ""95a93c96-f2a2-444b-8ffc-877ab4f52906"", | ||
""actions"": [ | ||
{ | ||
""name"": ""Movement"", | ||
""type"": ""Value"", | ||
""id"": ""5f708a93-99d7-471f-88cb-710657e58a4c"", | ||
""expectedControlType"": ""Vector3"", | ||
""processors"": """", | ||
""interactions"": """", | ||
""initialStateCheck"": true | ||
} | ||
], | ||
""bindings"": [ | ||
{ | ||
""name"": ""3D Vector"", | ||
""id"": ""4b63414a-48f6-48b2-be67-bd791de3e741"", | ||
""path"": ""3DVector"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": true, | ||
""isPartOfComposite"": false | ||
}, | ||
{ | ||
""name"": ""up"", | ||
""id"": ""cf43dc80-e470-4df7-929d-95fa4a98beb5"", | ||
""path"": ""<Keyboard>/space"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": true | ||
}, | ||
{ | ||
""name"": ""down"", | ||
""id"": ""7cf1dcfb-6d3a-4565-b297-7efe8cb98876"", | ||
""path"": ""<Keyboard>/leftShift"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": true | ||
}, | ||
{ | ||
""name"": ""left"", | ||
""id"": ""1dd07e1c-9fc5-4379-883a-0453e2f437f8"", | ||
""path"": ""<Keyboard>/a"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": true | ||
}, | ||
{ | ||
""name"": ""right"", | ||
""id"": ""6ecdc466-87f5-4d66-8105-dc8e48d9e698"", | ||
""path"": ""<Keyboard>/d"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": true | ||
}, | ||
{ | ||
""name"": ""forward"", | ||
""id"": ""dcf9a7a0-bec8-4e08-a2bb-c033471e8bcf"", | ||
""path"": ""<Keyboard>/w"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": true | ||
}, | ||
{ | ||
""name"": ""backward"", | ||
""id"": ""4b66a5a2-7772-426c-95ef-bb3a8badaaf7"", | ||
""path"": ""<Keyboard>/s"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Movement"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": true | ||
} | ||
] | ||
} | ||
], | ||
""controlSchemes"": [] | ||
}"); | ||
// Move | ||
m_Move = asset.FindActionMap("Move", throwIfNotFound: true); | ||
m_Move_Movement = m_Move.FindAction("Movement", throwIfNotFound: true); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
UnityEngine.Object.Destroy(asset); | ||
} | ||
|
||
public InputBinding? bindingMask | ||
{ | ||
get => asset.bindingMask; | ||
set => asset.bindingMask = value; | ||
} | ||
|
||
public ReadOnlyArray<InputDevice>? devices | ||
{ | ||
get => asset.devices; | ||
set => asset.devices = value; | ||
} | ||
|
||
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes; | ||
|
||
public bool Contains(InputAction action) | ||
{ | ||
return asset.Contains(action); | ||
} | ||
|
||
public IEnumerator<InputAction> GetEnumerator() | ||
{ | ||
return asset.GetEnumerator(); | ||
} | ||
|
||
IEnumerator IEnumerable.GetEnumerator() | ||
{ | ||
return GetEnumerator(); | ||
} | ||
|
||
public void Enable() | ||
{ | ||
asset.Enable(); | ||
} | ||
|
||
public void Disable() | ||
{ | ||
asset.Disable(); | ||
} | ||
public IEnumerable<InputBinding> bindings => asset.bindings; | ||
|
||
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) | ||
{ | ||
return asset.FindAction(actionNameOrId, throwIfNotFound); | ||
} | ||
public int FindBinding(InputBinding bindingMask, out InputAction action) | ||
{ | ||
return asset.FindBinding(bindingMask, out action); | ||
} | ||
|
||
// Move | ||
private readonly InputActionMap m_Move; | ||
private IMoveActions m_MoveActionsCallbackInterface; | ||
private readonly InputAction m_Move_Movement; | ||
public struct MoveActions | ||
{ | ||
private @GeneratedCubeControl m_Wrapper; | ||
public MoveActions(@GeneratedCubeControl wrapper) { m_Wrapper = wrapper; } | ||
public InputAction @Movement => m_Wrapper.m_Move_Movement; | ||
public InputActionMap Get() { return m_Wrapper.m_Move; } | ||
public void Enable() { Get().Enable(); } | ||
public void Disable() { Get().Disable(); } | ||
public bool enabled => Get().enabled; | ||
public static implicit operator InputActionMap(MoveActions set) { return set.Get(); } | ||
public void SetCallbacks(IMoveActions instance) | ||
{ | ||
if (m_Wrapper.m_MoveActionsCallbackInterface != null) | ||
{ | ||
@Movement.started -= m_Wrapper.m_MoveActionsCallbackInterface.OnMovement; | ||
@Movement.performed -= m_Wrapper.m_MoveActionsCallbackInterface.OnMovement; | ||
@Movement.canceled -= m_Wrapper.m_MoveActionsCallbackInterface.OnMovement; | ||
} | ||
m_Wrapper.m_MoveActionsCallbackInterface = instance; | ||
if (instance != null) | ||
{ | ||
@Movement.started += instance.OnMovement; | ||
@Movement.performed += instance.OnMovement; | ||
@Movement.canceled += instance.OnMovement; | ||
} | ||
} | ||
} | ||
public MoveActions @Move => new MoveActions(this); | ||
public interface IMoveActions | ||
{ | ||
void OnMovement(InputAction.CallbackContext context); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"name": "Cube Control", | ||
"maps": [ | ||
{ | ||
"name": "Move", | ||
"id": "95a93c96-f2a2-444b-8ffc-877ab4f52906", | ||
"actions": [ | ||
{ | ||
"name": "Movement", | ||
"type": "Value", | ||
"id": "5f708a93-99d7-471f-88cb-710657e58a4c", | ||
"expectedControlType": "Vector3", | ||
"processors": "", | ||
"interactions": "", | ||
"initialStateCheck": true | ||
} | ||
], | ||
"bindings": [ | ||
{ | ||
"name": "3D Vector", | ||
"id": "4b63414a-48f6-48b2-be67-bd791de3e741", | ||
"path": "3DVector", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": true, | ||
"isPartOfComposite": false | ||
}, | ||
{ | ||
"name": "up", | ||
"id": "cf43dc80-e470-4df7-929d-95fa4a98beb5", | ||
"path": "<Keyboard>/space", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": false, | ||
"isPartOfComposite": true | ||
}, | ||
{ | ||
"name": "down", | ||
"id": "7cf1dcfb-6d3a-4565-b297-7efe8cb98876", | ||
"path": "<Keyboard>/leftShift", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": false, | ||
"isPartOfComposite": true | ||
}, | ||
{ | ||
"name": "left", | ||
"id": "1dd07e1c-9fc5-4379-883a-0453e2f437f8", | ||
"path": "<Keyboard>/a", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": false, | ||
"isPartOfComposite": true | ||
}, | ||
{ | ||
"name": "right", | ||
"id": "6ecdc466-87f5-4d66-8105-dc8e48d9e698", | ||
"path": "<Keyboard>/d", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": false, | ||
"isPartOfComposite": true | ||
}, | ||
{ | ||
"name": "forward", | ||
"id": "dcf9a7a0-bec8-4e08-a2bb-c033471e8bcf", | ||
"path": "<Keyboard>/w", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": false, | ||
"isPartOfComposite": true | ||
}, | ||
{ | ||
"name": "backward", | ||
"id": "4b66a5a2-7772-426c-95ef-bb3a8badaaf7", | ||
"path": "<Keyboard>/s", | ||
"interactions": "", | ||
"processors": "", | ||
"groups": "", | ||
"action": "Movement", | ||
"isComposite": false, | ||
"isPartOfComposite": true | ||
} | ||
] | ||
} | ||
], | ||
"controlSchemes": [] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.