2025-08-11 14:04:06 -04:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
2026-03-14 03:13:10 -04:00
// version 1.18.0
2025-08-11 14:04:06 -04:00
// from Assets/Input/GameInput.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 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Assets/Input/GameInput.inputactions".
/// </summary>
/// <remarks>
/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
/// </remarks>
/// <example>
/// <code>
/// using namespace UnityEngine;
/// using UnityEngine.InputSystem;
///
/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface.
/// public class Example : MonoBehaviour, MyActions.IPlayerActions
/// {
/// private MyActions_Actions m_Actions; // Source code representation of asset.
/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map.
///
/// void Awake()
/// {
/// m_Actions = new MyActions_Actions(); // Create asset object.
/// m_Player = m_Actions.Player; // Extract action map object.
/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions.
/// }
///
/// void OnDestroy()
/// {
/// m_Actions.Dispose(); // Destroy asset object.
/// }
///
/// void OnEnable()
/// {
/// m_Player.Enable(); // Enable all actions within map.
/// }
///
/// void OnDisable()
/// {
/// m_Player.Disable(); // Disable all actions within map.
/// }
///
/// #region Interface implementation of MyActions.IPlayerActions
///
/// // Invoked when "Move" action is either started, performed or canceled.
/// public void OnMove(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}");
/// }
///
/// // Invoked when "Attack" action is either started, performed or canceled.
/// public void OnAttack(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnAttack: {context.ReadValue<float>()}");
/// }
///
/// #endregion
/// }
/// </code>
/// </example>
2025-08-11 14:04:06 -04:00
public partial class @GameInput : IInputActionCollection2 , IDisposable
{
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying asset instance.
/// </summary>
2025-08-11 14:04:06 -04:00
public InputActionAsset asset { get ; }
2026-03-14 03:13:10 -04:00
/// <summary>
/// Constructs a new instance.
/// </summary>
2025-08-11 14:04:06 -04:00
public @GameInput ( )
{
asset = InputActionAsset . FromJson ( @ "{
2026-03-14 03:13:10 -04:00
"" version "" : 1 ,
2025-08-11 14:04:06 -04:00
"" name "" : "" GameInput "" ,
"" maps "" : [
{
"" name "" : "" Menu "" ,
"" id "" : "" 6 ee4e6e2 - 2942 - 4180 - 934 b - b99b39672dea "" ,
"" actions "" : [
{
"" name "" : "" Scroll "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 11 b6e4fe - 77 a3 - 4 a8d - b22b - 8 ba3b3b55b13 "" ,
"" expectedControlType "" : "" Axis "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Down "" ,
"" type "" : "" Button "" ,
"" id "" : "" 7 c2b9493 - 5 b9f - 4f fa - 8 b1d - 6398f 5 c3b5f2 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Up "" ,
"" type "" : "" Button "" ,
"" id "" : "" de1dc3c5 - 500d - 4 ab4 - 9 a72 - 1 ea6231e952b "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
}
] ,
"" bindings "" : [
{
"" name "" : "" "" ,
"" id "" : "" 14 b76e42 - 70e9 - 46d 7 - a085 - 7d 766 ea271ce "" ,
"" path "" : "" < Mouse > / scroll / y "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Scroll "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 781d bf8d - 1d 9e-422f - 8128 - f00384c1d7f2 "" ,
"" path "" : "" < Joystick > / stick / y "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Scroll "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 12d 05 a04 - 4 af3 - 4d cb - ab2f - 6f 3 b11e2cc98 "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Down "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 01e9d 24e-7415 - 451d - ba2d - 59532111112d "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Up "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
}
]
} ,
{
"" name "" : "" Game "" ,
"" id "" : "" 34e27 e63 - e254 - 48d 1 - 938 a - 1908 b0e4e387 "" ,
"" actions "" : [
{
"" name "" : "" Tap0 "" ,
"" type "" : "" Button "" ,
"" id "" : "" d9a45505 - fce6 - 4337 - a13a - a188973fee71 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Tap1 "" ,
"" type "" : "" Button "" ,
"" id "" : "" 7 b1cf3f3 - a76f - 40e9 - b0b9 - 5 a1168533ea0 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Tap2 "" ,
"" type "" : "" Button "" ,
"" id "" : "" 17 a50d54 - b864 - 4f d1 - 81 b8 - 94 abbc782db2 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Tap3 "" ,
"" type "" : "" Button "" ,
"" id "" : "" ff612599 - a717 - 4171 - a052 - 8d 4 c3ce235ab "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Touch0 "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" e1fd90c5 - 246e-49 c0 - 8e79 - 78583 b7ad2a0 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Touch1 "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 56 b821bf - f0c5 - 4d d0 - 890 c - b3ea7c8a53c8 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Touch2 "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" f19ec1cf - 27 a6 - 4434 - 9d 25 - c693056c0e5e "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Touch3 "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" c278780f - 1f 4f - 428d - baa6 - 01 b91fcdbd4f "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Swipe0 "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 2892 cd2c - e15e - 40 ee - 96 ef - f454e72ea432 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Swipe1 "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 9 c989a19 - a9bf - 4d 1 a - 87e5 - b0390996ff8f "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
}
] ,
"" bindings "" : [
{
"" name "" : "" "" ,
"" id "" : "" d93b6f05 - 916f - 4 c3b - 9579 - 8 edcbeea7cac "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Tap0 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 909e8506 - 2 eb3 - 4909 - ba01 - 17f aef83647c "" ,
"" path "" : "" < Keyboard > / f "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Tap1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 7d 3 cb5dc - e61e - 4d b8 - a4f2 - 70d c99817e40 "" ,
"" path "" : "" < Keyboard > / j "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Tap2 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" e99763fa - 19 aa - 4296 - ba00 - 3 c6ab5f6bbb7 "" ,
"" path "" : "" < Keyboard > / k "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Tap3 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" b8cd4ed0 - 5 b8a - 4 af9 - b467 - b8476d18f723 "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" Hold "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Touch0 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 54d ffe0d - 8 cb6 - 45 c2 - 8327 - 417 eca9e64f1 "" ,
"" path "" : "" < Keyboard > / f "" ,
"" interactions "" : "" Hold "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Touch1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" f3b8470e - 8562 - 42 b8 - 8d 53 - b90010a8457d "" ,
"" path "" : "" < Keyboard > / j "" ,
"" interactions "" : "" Hold "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Touch2 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 023f 9d 05 - ddbb - 4 afd - 8562 - 6e89 e3c0c7cf "" ,
"" path "" : "" < Keyboard > / k "" ,
"" interactions "" : "" Hold "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Touch3 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" a142e84f - 0405 - 46 bf - 98e4 - 5 a3ee1ad2083 "" ,
"" path "" : "" < Keyboard > / space "" ,
"" interactions "" : "" Hold "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Swipe0 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" f639a210 - bcca - 4 ec9 - b89b - 5 cf5d74b4a20 "" ,
"" path "" : "" < Keyboard > / k "" ,
"" interactions "" : "" Hold "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Swipe1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
}
]
}
] ,
"" controlSchemes "" : [ ]
} ");
// Menu
m_Menu = asset . FindActionMap ( "Menu" , throwIfNotFound : true ) ;
m_Menu_Scroll = m_Menu . FindAction ( "Scroll" , throwIfNotFound : true ) ;
m_Menu_Down = m_Menu . FindAction ( "Down" , throwIfNotFound : true ) ;
m_Menu_Up = m_Menu . FindAction ( "Up" , throwIfNotFound : true ) ;
// Game
m_Game = asset . FindActionMap ( "Game" , throwIfNotFound : true ) ;
m_Game_Tap0 = m_Game . FindAction ( "Tap0" , throwIfNotFound : true ) ;
m_Game_Tap1 = m_Game . FindAction ( "Tap1" , throwIfNotFound : true ) ;
m_Game_Tap2 = m_Game . FindAction ( "Tap2" , throwIfNotFound : true ) ;
m_Game_Tap3 = m_Game . FindAction ( "Tap3" , throwIfNotFound : true ) ;
m_Game_Touch0 = m_Game . FindAction ( "Touch0" , throwIfNotFound : true ) ;
m_Game_Touch1 = m_Game . FindAction ( "Touch1" , throwIfNotFound : true ) ;
m_Game_Touch2 = m_Game . FindAction ( "Touch2" , throwIfNotFound : true ) ;
m_Game_Touch3 = m_Game . FindAction ( "Touch3" , throwIfNotFound : true ) ;
m_Game_Swipe0 = m_Game . FindAction ( "Swipe0" , throwIfNotFound : true ) ;
m_Game_Swipe1 = m_Game . FindAction ( "Swipe1" , throwIfNotFound : true ) ;
}
~ @GameInput ( )
{
UnityEngine . Debug . Assert ( ! m_Menu . enabled , "This will cause a leak and performance issues, GameInput.Menu.Disable() has not been called." ) ;
UnityEngine . Debug . Assert ( ! m_Game . enabled , "This will cause a leak and performance issues, GameInput.Game.Disable() has not been called." ) ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Destroys this asset and all associated <see cref="InputAction"/> instances.
/// </summary>
2025-08-11 14:04:06 -04:00
public void Dispose ( )
{
UnityEngine . Object . Destroy ( asset ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" />
2025-08-11 14:04:06 -04:00
public InputBinding ? bindingMask
{
get = > asset . bindingMask ;
set = > asset . bindingMask = value ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" />
2025-08-11 14:04:06 -04:00
public ReadOnlyArray < InputDevice > ? devices
{
get = > asset . devices ;
set = > asset . devices = value ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" />
2025-08-11 14:04:06 -04:00
public ReadOnlyArray < InputControlScheme > controlSchemes = > asset . controlSchemes ;
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" />
2025-08-11 14:04:06 -04:00
public bool Contains ( InputAction action )
{
return asset . Contains ( action ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" />
2025-08-11 14:04:06 -04:00
public IEnumerator < InputAction > GetEnumerator ( )
{
return asset . GetEnumerator ( ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="IEnumerable.GetEnumerator()" />
2025-08-11 14:04:06 -04:00
IEnumerator IEnumerable . GetEnumerator ( )
{
return GetEnumerator ( ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" />
2025-08-11 14:04:06 -04:00
public void Enable ( )
{
asset . Enable ( ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" />
2025-08-11 14:04:06 -04:00
public void Disable ( )
{
asset . Disable ( ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" />
2025-08-11 14:04:06 -04:00
public IEnumerable < InputBinding > bindings = > asset . bindings ;
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" />
2025-08-11 14:04:06 -04:00
public InputAction FindAction ( string actionNameOrId , bool throwIfNotFound = false )
{
return asset . FindAction ( actionNameOrId , throwIfNotFound ) ;
}
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" />
2025-08-11 14:04:06 -04:00
public int FindBinding ( InputBinding bindingMask , out InputAction action )
{
return asset . FindBinding ( bindingMask , out action ) ;
}
// Menu
private readonly InputActionMap m_Menu ;
private List < IMenuActions > m_MenuActionsCallbackInterfaces = new List < IMenuActions > ( ) ;
private readonly InputAction m_Menu_Scroll ;
private readonly InputAction m_Menu_Down ;
private readonly InputAction m_Menu_Up ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to input actions defined in input action map "Menu".
/// </summary>
2025-08-11 14:04:06 -04:00
public struct MenuActions
{
private @GameInput m_Wrapper ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
2025-08-11 14:04:06 -04:00
public MenuActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Menu/Scroll".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Scroll = > m_Wrapper . m_Menu_Scroll ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Menu/Down".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Down = > m_Wrapper . m_Menu_Down ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Menu/Up".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Up = > m_Wrapper . m_Menu_Up ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
2025-08-11 14:04:06 -04:00
public InputActionMap Get ( ) { return m_Wrapper . m_Menu ; }
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
2025-08-11 14:04:06 -04:00
public void Enable ( ) { Get ( ) . Enable ( ) ; }
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
2025-08-11 14:04:06 -04:00
public void Disable ( ) { Get ( ) . Disable ( ) ; }
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
2025-08-11 14:04:06 -04:00
public bool enabled = > Get ( ) . enabled ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Implicitly converts an <see ref="MenuActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
2025-08-11 14:04:06 -04:00
public static implicit operator InputActionMap ( MenuActions set ) { return set . Get ( ) ; }
2026-03-14 03:13:10 -04:00
/// <summary>
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <param name="instance">Callback instance.</param>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
/// </remarks>
/// <seealso cref="MenuActions" />
2025-08-11 14:04:06 -04:00
public void AddCallbacks ( IMenuActions instance )
{
if ( instance = = null | | m_Wrapper . m_MenuActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_MenuActionsCallbackInterfaces . Add ( instance ) ;
@Scroll . started + = instance . OnScroll ;
@Scroll . performed + = instance . OnScroll ;
@Scroll . canceled + = instance . OnScroll ;
@Down . started + = instance . OnDown ;
@Down . performed + = instance . OnDown ;
@Down . canceled + = instance . OnDown ;
@Up . started + = instance . OnUp ;
@Up . performed + = instance . OnUp ;
@Up . canceled + = instance . OnUp ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <remarks>
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
/// </remarks>
/// <seealso cref="MenuActions" />
2025-08-11 14:04:06 -04:00
private void UnregisterCallbacks ( IMenuActions instance )
{
@Scroll . started - = instance . OnScroll ;
@Scroll . performed - = instance . OnScroll ;
@Scroll . canceled - = instance . OnScroll ;
@Down . started - = instance . OnDown ;
@Down . performed - = instance . OnDown ;
@Down . canceled - = instance . OnDown ;
@Up . started - = instance . OnUp ;
@Up . performed - = instance . OnUp ;
@Up . canceled - = instance . OnUp ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="MenuActions.UnregisterCallbacks(IMenuActions)" />.
/// </summary>
/// <seealso cref="MenuActions.UnregisterCallbacks(IMenuActions)" />
2025-08-11 14:04:06 -04:00
public void RemoveCallbacks ( IMenuActions instance )
{
if ( m_Wrapper . m_MenuActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
/// </summary>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
/// </remarks>
/// <seealso cref="MenuActions.AddCallbacks(IMenuActions)" />
/// <seealso cref="MenuActions.RemoveCallbacks(IMenuActions)" />
/// <seealso cref="MenuActions.UnregisterCallbacks(IMenuActions)" />
2025-08-11 14:04:06 -04:00
public void SetCallbacks ( IMenuActions instance )
{
foreach ( var item in m_Wrapper . m_MenuActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_MenuActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides a new <see cref="MenuActions" /> instance referencing this action map.
/// </summary>
2025-08-11 14:04:06 -04:00
public MenuActions @Menu = > new MenuActions ( this ) ;
// Game
private readonly InputActionMap m_Game ;
private List < IGameActions > m_GameActionsCallbackInterfaces = new List < IGameActions > ( ) ;
private readonly InputAction m_Game_Tap0 ;
private readonly InputAction m_Game_Tap1 ;
private readonly InputAction m_Game_Tap2 ;
private readonly InputAction m_Game_Tap3 ;
private readonly InputAction m_Game_Touch0 ;
private readonly InputAction m_Game_Touch1 ;
private readonly InputAction m_Game_Touch2 ;
private readonly InputAction m_Game_Touch3 ;
private readonly InputAction m_Game_Swipe0 ;
private readonly InputAction m_Game_Swipe1 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to input actions defined in input action map "Game".
/// </summary>
2025-08-11 14:04:06 -04:00
public struct GameActions
{
private @GameInput m_Wrapper ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
2025-08-11 14:04:06 -04:00
public GameActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Tap0".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Tap0 = > m_Wrapper . m_Game_Tap0 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Tap1".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Tap1 = > m_Wrapper . m_Game_Tap1 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Tap2".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Tap2 = > m_Wrapper . m_Game_Tap2 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Tap3".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Tap3 = > m_Wrapper . m_Game_Tap3 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Touch0".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Touch0 = > m_Wrapper . m_Game_Touch0 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Touch1".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Touch1 = > m_Wrapper . m_Game_Touch1 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Touch2".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Touch2 = > m_Wrapper . m_Game_Touch2 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Touch3".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Touch3 = > m_Wrapper . m_Game_Touch3 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Swipe0".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Swipe0 = > m_Wrapper . m_Game_Swipe0 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action "Game/Swipe1".
/// </summary>
2025-08-11 14:04:06 -04:00
public InputAction @Swipe1 = > m_Wrapper . m_Game_Swipe1 ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
2025-08-11 14:04:06 -04:00
public InputActionMap Get ( ) { return m_Wrapper . m_Game ; }
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
2025-08-11 14:04:06 -04:00
public void Enable ( ) { Get ( ) . Enable ( ) ; }
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
2025-08-11 14:04:06 -04:00
public void Disable ( ) { Get ( ) . Disable ( ) ; }
2026-03-14 03:13:10 -04:00
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
2025-08-11 14:04:06 -04:00
public bool enabled = > Get ( ) . enabled ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Implicitly converts an <see ref="GameActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
2025-08-11 14:04:06 -04:00
public static implicit operator InputActionMap ( GameActions set ) { return set . Get ( ) ; }
2026-03-14 03:13:10 -04:00
/// <summary>
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <param name="instance">Callback instance.</param>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
/// </remarks>
/// <seealso cref="GameActions" />
2025-08-11 14:04:06 -04:00
public void AddCallbacks ( IGameActions instance )
{
if ( instance = = null | | m_Wrapper . m_GameActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_GameActionsCallbackInterfaces . Add ( instance ) ;
@Tap0 . started + = instance . OnTap0 ;
@Tap0 . performed + = instance . OnTap0 ;
@Tap0 . canceled + = instance . OnTap0 ;
@Tap1 . started + = instance . OnTap1 ;
@Tap1 . performed + = instance . OnTap1 ;
@Tap1 . canceled + = instance . OnTap1 ;
@Tap2 . started + = instance . OnTap2 ;
@Tap2 . performed + = instance . OnTap2 ;
@Tap2 . canceled + = instance . OnTap2 ;
@Tap3 . started + = instance . OnTap3 ;
@Tap3 . performed + = instance . OnTap3 ;
@Tap3 . canceled + = instance . OnTap3 ;
@Touch0 . started + = instance . OnTouch0 ;
@Touch0 . performed + = instance . OnTouch0 ;
@Touch0 . canceled + = instance . OnTouch0 ;
@Touch1 . started + = instance . OnTouch1 ;
@Touch1 . performed + = instance . OnTouch1 ;
@Touch1 . canceled + = instance . OnTouch1 ;
@Touch2 . started + = instance . OnTouch2 ;
@Touch2 . performed + = instance . OnTouch2 ;
@Touch2 . canceled + = instance . OnTouch2 ;
@Touch3 . started + = instance . OnTouch3 ;
@Touch3 . performed + = instance . OnTouch3 ;
@Touch3 . canceled + = instance . OnTouch3 ;
@Swipe0 . started + = instance . OnSwipe0 ;
@Swipe0 . performed + = instance . OnSwipe0 ;
@Swipe0 . canceled + = instance . OnSwipe0 ;
@Swipe1 . started + = instance . OnSwipe1 ;
@Swipe1 . performed + = instance . OnSwipe1 ;
@Swipe1 . canceled + = instance . OnSwipe1 ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <remarks>
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
/// </remarks>
/// <seealso cref="GameActions" />
2025-08-11 14:04:06 -04:00
private void UnregisterCallbacks ( IGameActions instance )
{
@Tap0 . started - = instance . OnTap0 ;
@Tap0 . performed - = instance . OnTap0 ;
@Tap0 . canceled - = instance . OnTap0 ;
@Tap1 . started - = instance . OnTap1 ;
@Tap1 . performed - = instance . OnTap1 ;
@Tap1 . canceled - = instance . OnTap1 ;
@Tap2 . started - = instance . OnTap2 ;
@Tap2 . performed - = instance . OnTap2 ;
@Tap2 . canceled - = instance . OnTap2 ;
@Tap3 . started - = instance . OnTap3 ;
@Tap3 . performed - = instance . OnTap3 ;
@Tap3 . canceled - = instance . OnTap3 ;
@Touch0 . started - = instance . OnTouch0 ;
@Touch0 . performed - = instance . OnTouch0 ;
@Touch0 . canceled - = instance . OnTouch0 ;
@Touch1 . started - = instance . OnTouch1 ;
@Touch1 . performed - = instance . OnTouch1 ;
@Touch1 . canceled - = instance . OnTouch1 ;
@Touch2 . started - = instance . OnTouch2 ;
@Touch2 . performed - = instance . OnTouch2 ;
@Touch2 . canceled - = instance . OnTouch2 ;
@Touch3 . started - = instance . OnTouch3 ;
@Touch3 . performed - = instance . OnTouch3 ;
@Touch3 . canceled - = instance . OnTouch3 ;
@Swipe0 . started - = instance . OnSwipe0 ;
@Swipe0 . performed - = instance . OnSwipe0 ;
@Swipe0 . canceled - = instance . OnSwipe0 ;
@Swipe1 . started - = instance . OnSwipe1 ;
@Swipe1 . performed - = instance . OnSwipe1 ;
@Swipe1 . canceled - = instance . OnSwipe1 ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="GameActions.UnregisterCallbacks(IGameActions)" />.
/// </summary>
/// <seealso cref="GameActions.UnregisterCallbacks(IGameActions)" />
2025-08-11 14:04:06 -04:00
public void RemoveCallbacks ( IGameActions instance )
{
if ( m_Wrapper . m_GameActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
/// </summary>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
/// </remarks>
/// <seealso cref="GameActions.AddCallbacks(IGameActions)" />
/// <seealso cref="GameActions.RemoveCallbacks(IGameActions)" />
/// <seealso cref="GameActions.UnregisterCallbacks(IGameActions)" />
2025-08-11 14:04:06 -04:00
public void SetCallbacks ( IGameActions instance )
{
foreach ( var item in m_Wrapper . m_GameActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_GameActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Provides a new <see cref="GameActions" /> instance referencing this action map.
/// </summary>
2025-08-11 14:04:06 -04:00
public GameActions @Game = > new GameActions ( this ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Menu" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="MenuActions.AddCallbacks(IMenuActions)" />
/// <seealso cref="MenuActions.RemoveCallbacks(IMenuActions)" />
2025-08-11 14:04:06 -04:00
public interface IMenuActions
{
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Scroll" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnScroll ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Down" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnDown ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Up" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnUp ( InputAction . CallbackContext context ) ;
}
2026-03-14 03:13:10 -04:00
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Game" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="GameActions.AddCallbacks(IGameActions)" />
/// <seealso cref="GameActions.RemoveCallbacks(IGameActions)" />
2025-08-11 14:04:06 -04:00
public interface IGameActions
{
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Tap0" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTap0 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Tap1" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTap1 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Tap2" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTap2 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Tap3" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTap3 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Touch0" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTouch0 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Touch1" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTouch1 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Touch2" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTouch2 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Touch3" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnTouch3 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Swipe0" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnSwipe0 ( InputAction . CallbackContext context ) ;
2026-03-14 03:13:10 -04:00
/// <summary>
/// Method invoked when associated input action "Swipe1" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
2025-08-11 14:04:06 -04:00
void OnSwipe1 ( InputAction . CallbackContext context ) ;
}
}