-
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
Showing
919 changed files
with
158,154 additions
and
946 deletions.
There are no files selected for viewing
This file was deleted.
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.
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,201 @@ | ||
// GENERATED AUTOMATICALLY FROM 'Assets/Controls/Controls.inputactions' | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine.InputSystem; | ||
using UnityEngine.InputSystem.Utilities; | ||
|
||
public class @Controls : IInputActionCollection, IDisposable | ||
{ | ||
public InputActionAsset asset { get; } | ||
public @Controls() | ||
{ | ||
asset = InputActionAsset.FromJson(@"{ | ||
""name"": ""Controls"", | ||
""maps"": [ | ||
{ | ||
""name"": ""Playermap"", | ||
""id"": ""9bc0b61a-9bc5-46ea-9499-086cfc042264"", | ||
""actions"": [ | ||
{ | ||
""name"": ""Move"", | ||
""type"": ""Value"", | ||
""id"": ""21720a45-4226-41b2-b427-1abb3000b20e"", | ||
""expectedControlType"": ""Stick"", | ||
""processors"": """", | ||
""interactions"": """" | ||
}, | ||
{ | ||
""name"": ""Dash"", | ||
""type"": ""Button"", | ||
""id"": ""f7e598ac-9941-4175-bac9-e7722a796ee3"", | ||
""expectedControlType"": """", | ||
""processors"": """", | ||
""interactions"": ""Tap"" | ||
}, | ||
{ | ||
""name"": ""Takedown"", | ||
""type"": ""Button"", | ||
""id"": ""667e4f7f-c500-45a2-8a48-481160577fff"", | ||
""expectedControlType"": """", | ||
""processors"": """", | ||
""interactions"": ""Tap"" | ||
} | ||
], | ||
""bindings"": [ | ||
{ | ||
""name"": """", | ||
""id"": ""dcd61829-e7c3-46f6-8ae6-f1189bcf49e1"", | ||
""path"": ""<Gamepad>/leftStick"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Move"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": false | ||
}, | ||
{ | ||
""name"": """", | ||
""id"": ""5497998e-ded0-44b0-9c19-91a6a161b3cf"", | ||
""path"": ""<Gamepad>/rightTrigger"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Dash"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": false | ||
}, | ||
{ | ||
""name"": """", | ||
""id"": ""c5c30799-f9ca-450d-801b-96cb2dc802cb"", | ||
""path"": ""<Gamepad>/dpad/x"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Takedown"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": false | ||
}, | ||
{ | ||
""name"": """", | ||
""id"": ""d7de391c-aa0d-4d3c-a29c-bf8700d7abaf"", | ||
""path"": ""<Gamepad>/dpad/y"", | ||
""interactions"": """", | ||
""processors"": """", | ||
""groups"": """", | ||
""action"": ""Takedown"", | ||
""isComposite"": false, | ||
""isPartOfComposite"": false | ||
} | ||
] | ||
} | ||
], | ||
""controlSchemes"": [] | ||
}"); | ||
// Playermap | ||
m_Playermap = asset.FindActionMap("Playermap", throwIfNotFound: true); | ||
m_Playermap_Move = m_Playermap.FindAction("Move", throwIfNotFound: true); | ||
m_Playermap_Dash = m_Playermap.FindAction("Dash", throwIfNotFound: true); | ||
m_Playermap_Takedown = m_Playermap.FindAction("Takedown", 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(); | ||
} | ||
|
||
// Playermap | ||
private readonly InputActionMap m_Playermap; | ||
private IPlayermapActions m_PlayermapActionsCallbackInterface; | ||
private readonly InputAction m_Playermap_Move; | ||
private readonly InputAction m_Playermap_Dash; | ||
private readonly InputAction m_Playermap_Takedown; | ||
public struct PlayermapActions | ||
{ | ||
private @Controls m_Wrapper; | ||
public PlayermapActions(@Controls wrapper) { m_Wrapper = wrapper; } | ||
public InputAction @Move => m_Wrapper.m_Playermap_Move; | ||
public InputAction @Dash => m_Wrapper.m_Playermap_Dash; | ||
public InputAction @Takedown => m_Wrapper.m_Playermap_Takedown; | ||
public InputActionMap Get() { return m_Wrapper.m_Playermap; } | ||
public void Enable() { Get().Enable(); } | ||
public void Disable() { Get().Disable(); } | ||
public bool enabled => Get().enabled; | ||
public static implicit operator InputActionMap(PlayermapActions set) { return set.Get(); } | ||
public void SetCallbacks(IPlayermapActions instance) | ||
{ | ||
if (m_Wrapper.m_PlayermapActionsCallbackInterface != null) | ||
{ | ||
@Move.started -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnMove; | ||
@Move.performed -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnMove; | ||
@Move.canceled -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnMove; | ||
@Dash.started -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnDash; | ||
@Dash.performed -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnDash; | ||
@Dash.canceled -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnDash; | ||
@Takedown.started -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnTakedown; | ||
@Takedown.performed -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnTakedown; | ||
@Takedown.canceled -= m_Wrapper.m_PlayermapActionsCallbackInterface.OnTakedown; | ||
} | ||
m_Wrapper.m_PlayermapActionsCallbackInterface = instance; | ||
if (instance != null) | ||
{ | ||
@Move.started += instance.OnMove; | ||
@Move.performed += instance.OnMove; | ||
@Move.canceled += instance.OnMove; | ||
@Dash.started += instance.OnDash; | ||
@Dash.performed += instance.OnDash; | ||
@Dash.canceled += instance.OnDash; | ||
@Takedown.started += instance.OnTakedown; | ||
@Takedown.performed += instance.OnTakedown; | ||
@Takedown.canceled += instance.OnTakedown; | ||
} | ||
} | ||
} | ||
public PlayermapActions @Playermap => new PlayermapActions(this); | ||
public interface IPlayermapActions | ||
{ | ||
void OnMove(InputAction.CallbackContext context); | ||
void OnDash(InputAction.CallbackContext context); | ||
void OnTakedown(InputAction.CallbackContext context); | ||
} | ||
} |
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.