2026-02-24 09:33:08 +01:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.14.2
// from Assets/Input/InputMaster.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 ;
/// <summary>
/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Assets/Input/InputMaster.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>
public partial class @InputMaster : IInputActionCollection2 , IDisposable
{
/// <summary>
/// Provides access to the underlying asset instance.
/// </summary>
public InputActionAsset asset { get ; }
/// <summary>
/// Constructs a new instance.
/// </summary>
public @InputMaster ( )
{
asset = InputActionAsset . FromJson ( @ "{
"" version "" : 1 ,
"" name "" : "" InputMaster "" ,
"" maps "" : [
{
"" name "" : "" Player "" ,
"" id "" : "" ba06b8b3 - 5539 - 468 c - 958d - a3322ba6ed6f "" ,
"" actions "" : [
{
"" name "" : "" Move "" ,
"" type "" : "" Value "" ,
"" id "" : "" 2d d47368 - 316 b - 470 b - ad53 - 28f c2926c0ec "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Look "" ,
"" type "" : "" Value "" ,
"" id "" : "" 1092 b3c1 - 6d bc - 4506 - 9984 - 54 eb43981894 "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Fire "" ,
"" type "" : "" Button "" ,
"" id "" : "" a3cbeaa5 - c874 - 4 ac6 - 86e7 - 93 bedb48c66e "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
2026-02-24 11:02:55 +01:00
} ,
{
"" name "" : "" Jump "" ,
"" type "" : "" Button "" ,
"" id "" : "" 57 b8c346 - a3cf - 4f f7 - b88e - 40 c941b1ee1f "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
2026-02-24 09:33:08 +01:00
}
] ,
"" bindings "" : [
{
"" name "" : "" "" ,
"" id "" : "" 978 bfe49 - cc26 - 4 a3d - ab7b - 7d 7 a29327403 "" ,
"" path "" : "" < Gamepad > / leftStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" WASD "" ,
"" id "" : "" 00 ca640b - d935 - 4593 - 8157 - c05846ea39b3 "" ,
"" path "" : "" Dpad "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" e2062cb9 - 1 b15 - 46 a2 - 838 c - 2f 8d 72 a0bdd9 "" ,
"" path "" : "" < Keyboard > / w "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 8180e8 bd - 4097 - 4f 4 e - ab88 - 4523101 a6ce9 "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 320 bffee - a40b - 4347 - ac70 - c210eb8bc73a "" ,
"" path "" : "" < Keyboard > / s "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 1 c5327b5 - f71c - 4f 60 - 99 c7 - 4e737386f 1d 1 "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" d2581a9b - 1d 11 - 4566 - b27d - b92aff5fabbc "" ,
"" path "" : "" < Keyboard > / a "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 2e46982 e - 44 cc - 431 b - 9f 0 b - c11910bf467a "" ,
"" path "" : "" < Keyboard > / leftArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" fcfe95b8 - 67 b9 - 4526 - 84 b5 - 5d 0 bc98d6400 "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 77 bff152 - 3580 - 4 b21 - b6de - dcd0c7e41164 "" ,
"" path "" : "" < Keyboard > / rightArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" 1635d 3f e - 58 b6 - 4 ba9 - a4e2 - f4b964f6b5c8 "" ,
"" path "" : "" < XRController > / { Primary2DAxis } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" XR "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 3 ea4d645 - 4504 - 4529 - b061 - ab81934c3752 "" ,
"" path "" : "" < Joystick > / stick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" c1f7a91b - d0fd - 4 a62 - 997e-7f b9b69bf235 "" ,
"" path "" : "" < Gamepad > / rightStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 3e5f 5442 - 8668 - 4 b27 - a940 - df99bad7e831 "" ,
"" path "" : "" < Joystick > / { Hatswitch } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 79d 18 aab - c726 - 4645 - 8 a8b - f39d1e96e67e "" ,
"" path "" : "" < Mouse > / delta "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 143 bb1cd - cc10 - 4 eca - a2f0 - a3664166fe91 "" ,
"" path "" : "" < Gamepad > / rightTrigger "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Fire "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 05f 6913d - c316 - 48 b2 - a6bb - e225f14c7960 "" ,
"" path "" : "" < Mouse > / leftButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Fire "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 886e731 e - 7071 - 4 ae4 - 95 c0 - e61739dad6fd "" ,
"" path "" : "" < Touchscreen > / primaryTouch / tap "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Touch "" ,
"" action "" : "" Fire "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" ee3d0cd2 - 254e-47 a7 - a8cb - bc94d9658c54 "" ,
"" path "" : "" < Joystick > / trigger "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Fire "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 8255d 333 - 5683 - 4943 - a58a - ccb207ff1dce "" ,
"" path "" : "" < XRController > / { PrimaryAction } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" XR "" ,
"" action "" : "" Fire "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
2026-02-24 11:02:55 +01:00
} ,
{
"" name "" : "" "" ,
"" id "" : "" 6980 ad91 - eccc - 46f f - 9 c2c - 839e46f ad8d4 "" ,
"" path "" : "" < Keyboard > / space "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Jump "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 27e601 ac - 68 ca - 432 e - bea3 - d1d836f837a2 "" ,
"" path "" : "" < Gamepad > / buttonSouth "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Jump "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
2026-02-24 09:33:08 +01:00
}
]
} ,
{
"" name "" : "" UI "" ,
"" id "" : "" 390 a4f8a - 91 ef - 4 af0 - 8d 04 - c728af1580ad "" ,
"" actions "" : [
{
"" name "" : "" Navigate "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 5f 8d f7e3 - 7343 - 42 ad - b1ae - 6f 976 b192d8d "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Submit "" ,
"" type "" : "" Button "" ,
"" id "" : "" 2995d 160 - a592 - 478 a - 8 ca1 - 9070 c808f051 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Cancel "" ,
"" type "" : "" Button "" ,
"" id "" : "" 7e963d c0 - 9999 - 45 a0 - 8 a05 - d1d71b404a75 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Point "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" bafd5bbd - b1ea - 4f 63 - a9c9 - 0 a62d97a70fd "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Click "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 70695 a11 - 53d f - 4 bf3 - bdd9 - 8 a39c3f0b3dc "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" ScrollWheel "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 750f 8 c28 - ff74 - 411 c - beb6 - f287e9fc1c08 "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" MiddleClick "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 8 ac55450 - 5398 - 4d 2 c - 9505 - fa006ae523b6 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" RightClick "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 9435 c3db - 4317 - 4 b59 - 9f be - b6e8cb614c1e "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" TrackedDevicePosition "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" e46670cf - ab81 - 4530 - af4e - 646f f552a0d7 "" ,
"" expectedControlType "" : "" Vector3 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" TrackedDeviceOrientation "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 6e0 ae25a - 6 a8d - 496d - 976f - 5 b53f4787f9a "" ,
"" expectedControlType "" : "" Quaternion "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
}
] ,
"" bindings "" : [
{
"" name "" : "" Gamepad "" ,
"" id "" : "" 809f 371f - c5e2 - 4e7 a - 83 a1 - d867598f40dd "" ,
"" path "" : "" 2D Vector "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 14 a5d6e8 - 4 aaf - 4119 - a9ef - 34 b8c2c548bf "" ,
"" path "" : "" < Gamepad > / leftStick / up "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 9144 cbe6 - 05e1 - 4687 - a6d7 - 24f 99d 23d d81 "" ,
"" path "" : "" < Gamepad > / rightStick / up "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 2d b08d65 - c5fb - 421 b - 983f - c71163608d67 "" ,
"" path "" : "" < Gamepad > / leftStick / down "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 58748904 - 2 ea9 - 4 a80 - 8579 - b500e6a76df8 "" ,
"" path "" : "" < Gamepad > / rightStick / down "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 8 ba04515 - 75 aa - 45d e - 966d - 393d 9 bbd1c14 "" ,
"" path "" : "" < Gamepad > / leftStick / left "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 712e721 c - bdfb - 4 b23 - a86c - a0d9fcfea921 "" ,
"" path "" : "" < Gamepad > / rightStick / left "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" fcd248ae - a788 - 4676 - a12e - f4d81205600b "" ,
"" path "" : "" < Gamepad > / leftStick / right "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 1f 04d 9 bc - c50b - 41 a1 - bfcc - afb75475ec20 "" ,
"" path "" : "" < Gamepad > / rightStick / right "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" fb8277d4 - c5cd - 4663 - 9d c7 - ee3f0b506d90 "" ,
"" path "" : "" < Gamepad > / dpad "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" Joystick "" ,
"" id "" : "" e25d9774 - 381 c - 4 a61 - b47c - 7 b6b299ad9f9 "" ,
"" path "" : "" 2D Vector "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 3d b53b26 - 6601 - 41 be - 9887 - 63 ac74e79d19 "" ,
"" path "" : "" < Joystick > / stick / up "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 0 cb3e13e - 3d 90 - 4178 - 8 ae6 - d9c5501d653f "" ,
"" path "" : "" < Joystick > / stick / down "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 0392d 399 - f6dd - 4 c82 - 8062 - c1e9c0d34835 "" ,
"" path "" : "" < Joystick > / stick / left "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 942 a66d9 - d42f - 43d 6 - 8d 70 - ecb4ba5363bc "" ,
"" path "" : "" < Joystick > / stick / right "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Joystick "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" Keyboard "" ,
"" id "" : "" ff527021 - f211 - 4 c02 - 933e-5976594 c46ed "" ,
"" path "" : "" 2D Vector "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 563f bfdd - 0f 09 - 408d - aa75 - 8642 c4f08ef0 "" ,
"" path "" : "" < Keyboard > / w "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" up "" ,
"" id "" : "" eb480147 - c587 - 4 a33 - 85 ed - eb0ab9942c43 "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 2 bf42165 - 60 bc - 42 ca - 8072 - 8 c13ab40239b "" ,
"" path "" : "" < Keyboard > / s "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 85d 264 ad - e0a0 - 4565 - b7ff - 1 a37edde51ac "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 74214943 - c580 - 44e4 - 98 eb - ad7eebe17902 "" ,
"" path "" : "" < Keyboard > / a "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" cea9b045 - a000 - 445 b - 95 b8 - 0 c171af70a3b "" ,
"" path "" : "" < Keyboard > / leftArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 8607 c725 - d935 - 4808 - 84 b1 - 8354e29 bab63 "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 4 cda81dc - 9 edd - 4e03 - 9d 7 c - a71a14345d0b "" ,
"" path "" : "" < Keyboard > / rightArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Navigate "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" 9e92 bb26 - 7e3 b - 4 ec4 - b06b - 3 c8f8e498ddc "" ,
"" path "" : "" * / { Submit } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse ; Gamepad ; Touch ; Joystick ; XR "" ,
"" action "" : "" Submit "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 82627d cc - 3 b13 - 4 ba9 - 841d - e4b746d6553e "" ,
"" path "" : "" * / { Cancel } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse ; Gamepad ; Touch ; Joystick ; XR "" ,
"" action "" : "" Cancel "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" c52c8e0b - 8179 - 41d 3 - b8a1 - d149033bbe86 "" ,
"" path "" : "" < Mouse > / position "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Point "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" e1394cbc - 336e-44 ce - 9 ea8 - 6007 ed6193f7 "" ,
"" path "" : "" < Pen > / position "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard & Mouse "" ,
"" action "" : "" Point "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 5693e57 a - 238 a - 46 ed - b5ae - e64e6e574302 "" ,
"" path "" : "" < Touchscreen > / touch * / position "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Touch "" ,
"" action "" : "" Point "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 4f af7dc9 - b979 - 4210 - aa8c - e808e1ef89f5 "" ,
"" path "" : "" < Mouse > / leftButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Click "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 8d 66d 5 ba - 88d 7 - 48e6 - b1cd - 198 bbfef7ace "" ,
"" path "" : "" < Pen > / tip "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" Click "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 47 c2a644 - 3 ebc - 4d ae - a106 - 589 b7ca75b59 "" ,
"" path "" : "" < Touchscreen > / touch * / press "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Touch "" ,
"" action "" : "" Click "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" bb9e6b34 - 44 bf - 4381 - ac63 - 5 aa15d19f677 "" ,
"" path "" : "" < XRController > / trigger "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" XR "" ,
"" action "" : "" Click "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 38 c99815 - 14 ea - 4617 - 8627 - 164d 27641299 "" ,
"" path "" : "" < Mouse > / scroll "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" ScrollWheel "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 24066f 69 - da47 - 44f 3 - a07e - 0015f b02eb2e "" ,
"" path "" : "" < Mouse > / middleButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" MiddleClick "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 4 c191405 - 5738 - 4d 4 b - a523 - c6a301dbf754 "" ,
"" path "" : "" < Mouse > / rightButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard & Mouse "" ,
"" action "" : "" RightClick "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 7236 c0d9 - 6 ca3 - 47 cf - a6ee - a97f5b59ea77 "" ,
"" path "" : "" < XRController > / devicePosition "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" XR "" ,
"" action "" : "" TrackedDevicePosition "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 23e01 e3a - f935 - 4948 - 8d 8 b - 9 bcac77714fb "" ,
"" path "" : "" < XRController > / deviceRotation "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" XR "" ,
"" action "" : "" TrackedDeviceOrientation "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
}
]
}
] ,
"" controlSchemes "" : [
{
"" name "" : "" Keyboard & Mouse "" ,
"" bindingGroup "" : "" Keyboard & Mouse "" ,
"" devices "" : [
{
"" devicePath "" : "" < Keyboard > "" ,
"" isOptional "" : false ,
"" isOR "" : false
} ,
{
"" devicePath "" : "" < Mouse > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" Gamepad "" ,
"" bindingGroup "" : "" Gamepad "" ,
"" devices "" : [
{
"" devicePath "" : "" < Gamepad > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" Touch "" ,
"" bindingGroup "" : "" Touch "" ,
"" devices "" : [
{
"" devicePath "" : "" < Touchscreen > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" Joystick "" ,
"" bindingGroup "" : "" Joystick "" ,
"" devices "" : [
{
"" devicePath "" : "" < Joystick > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" XR "" ,
"" bindingGroup "" : "" XR "" ,
"" devices "" : [
{
"" devicePath "" : "" < XRController > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
}
]
} ");
// Player
m_Player = asset . FindActionMap ( "Player" , throwIfNotFound : true ) ;
m_Player_Move = m_Player . FindAction ( "Move" , throwIfNotFound : true ) ;
m_Player_Look = m_Player . FindAction ( "Look" , throwIfNotFound : true ) ;
m_Player_Fire = m_Player . FindAction ( "Fire" , throwIfNotFound : true ) ;
2026-02-24 11:02:55 +01:00
m_Player_Jump = m_Player . FindAction ( "Jump" , throwIfNotFound : true ) ;
2026-02-24 09:33:08 +01:00
// UI
m_UI = asset . FindActionMap ( "UI" , throwIfNotFound : true ) ;
m_UI_Navigate = m_UI . FindAction ( "Navigate" , throwIfNotFound : true ) ;
m_UI_Submit = m_UI . FindAction ( "Submit" , throwIfNotFound : true ) ;
m_UI_Cancel = m_UI . FindAction ( "Cancel" , throwIfNotFound : true ) ;
m_UI_Point = m_UI . FindAction ( "Point" , throwIfNotFound : true ) ;
m_UI_Click = m_UI . FindAction ( "Click" , throwIfNotFound : true ) ;
m_UI_ScrollWheel = m_UI . FindAction ( "ScrollWheel" , throwIfNotFound : true ) ;
m_UI_MiddleClick = m_UI . FindAction ( "MiddleClick" , throwIfNotFound : true ) ;
m_UI_RightClick = m_UI . FindAction ( "RightClick" , throwIfNotFound : true ) ;
m_UI_TrackedDevicePosition = m_UI . FindAction ( "TrackedDevicePosition" , throwIfNotFound : true ) ;
m_UI_TrackedDeviceOrientation = m_UI . FindAction ( "TrackedDeviceOrientation" , throwIfNotFound : true ) ;
}
~ @InputMaster ( )
{
UnityEngine . Debug . Assert ( ! m_Player . enabled , "This will cause a leak and performance issues, InputMaster.Player.Disable() has not been called." ) ;
UnityEngine . Debug . Assert ( ! m_UI . enabled , "This will cause a leak and performance issues, InputMaster.UI.Disable() has not been called." ) ;
}
/// <summary>
/// Destroys this asset and all associated <see cref="InputAction"/> instances.
/// </summary>
public void Dispose ( )
{
UnityEngine . Object . Destroy ( asset ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" />
public InputBinding ? bindingMask
{
get = > asset . bindingMask ;
set = > asset . bindingMask = value ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" />
public ReadOnlyArray < InputDevice > ? devices
{
get = > asset . devices ;
set = > asset . devices = value ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" />
public ReadOnlyArray < InputControlScheme > controlSchemes = > asset . controlSchemes ;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" />
public bool Contains ( InputAction action )
{
return asset . Contains ( action ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" />
public IEnumerator < InputAction > GetEnumerator ( )
{
return asset . GetEnumerator ( ) ;
}
/// <inheritdoc cref="IEnumerable.GetEnumerator()" />
IEnumerator IEnumerable . GetEnumerator ( )
{
return GetEnumerator ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" />
public void Enable ( )
{
asset . Enable ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" />
public void Disable ( )
{
asset . Disable ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" />
public IEnumerable < InputBinding > bindings = > asset . bindings ;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" />
public InputAction FindAction ( string actionNameOrId , bool throwIfNotFound = false )
{
return asset . FindAction ( actionNameOrId , throwIfNotFound ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" />
public int FindBinding ( InputBinding bindingMask , out InputAction action )
{
return asset . FindBinding ( bindingMask , out action ) ;
}
// Player
private readonly InputActionMap m_Player ;
private List < IPlayerActions > m_PlayerActionsCallbackInterfaces = new List < IPlayerActions > ( ) ;
private readonly InputAction m_Player_Move ;
private readonly InputAction m_Player_Look ;
private readonly InputAction m_Player_Fire ;
2026-02-24 11:02:55 +01:00
private readonly InputAction m_Player_Jump ;
2026-02-24 09:33:08 +01:00
/// <summary>
/// Provides access to input actions defined in input action map "Player".
/// </summary>
public struct PlayerActions
{
private @InputMaster m_Wrapper ;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public PlayerActions ( @InputMaster wrapper ) { m_Wrapper = wrapper ; }
/// <summary>
/// Provides access to the underlying input action "Player/Move".
/// </summary>
public InputAction @Move = > m_Wrapper . m_Player_Move ;
/// <summary>
/// Provides access to the underlying input action "Player/Look".
/// </summary>
public InputAction @Look = > m_Wrapper . m_Player_Look ;
/// <summary>
/// Provides access to the underlying input action "Player/Fire".
/// </summary>
public InputAction @Fire = > m_Wrapper . m_Player_Fire ;
/// <summary>
2026-02-24 11:02:55 +01:00
/// Provides access to the underlying input action "Player/Jump".
/// </summary>
public InputAction @Jump = > m_Wrapper . m_Player_Jump ;
/// <summary>
2026-02-24 09:33:08 +01:00
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get ( ) { return m_Wrapper . m_Player ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
public void Enable ( ) { Get ( ) . Enable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
public void Disable ( ) { Get ( ) . Disable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
public bool enabled = > Get ( ) . enabled ;
/// <summary>
/// Implicitly converts an <see ref="PlayerActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap ( PlayerActions set ) { return set . Get ( ) ; }
/// <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="PlayerActions" />
public void AddCallbacks ( IPlayerActions instance )
{
if ( instance = = null | | m_Wrapper . m_PlayerActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_PlayerActionsCallbackInterfaces . Add ( instance ) ;
@Move . started + = instance . OnMove ;
@Move . performed + = instance . OnMove ;
@Move . canceled + = instance . OnMove ;
@Look . started + = instance . OnLook ;
@Look . performed + = instance . OnLook ;
@Look . canceled + = instance . OnLook ;
@Fire . started + = instance . OnFire ;
@Fire . performed + = instance . OnFire ;
@Fire . canceled + = instance . OnFire ;
2026-02-24 11:02:55 +01:00
@Jump . started + = instance . OnJump ;
@Jump . performed + = instance . OnJump ;
@Jump . canceled + = instance . OnJump ;
2026-02-24 09:33:08 +01: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="PlayerActions" />
private void UnregisterCallbacks ( IPlayerActions instance )
{
@Move . started - = instance . OnMove ;
@Move . performed - = instance . OnMove ;
@Move . canceled - = instance . OnMove ;
@Look . started - = instance . OnLook ;
@Look . performed - = instance . OnLook ;
@Look . canceled - = instance . OnLook ;
@Fire . started - = instance . OnFire ;
@Fire . performed - = instance . OnFire ;
@Fire . canceled - = instance . OnFire ;
2026-02-24 11:02:55 +01:00
@Jump . started - = instance . OnJump ;
@Jump . performed - = instance . OnJump ;
@Jump . canceled - = instance . OnJump ;
2026-02-24 09:33:08 +01:00
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />.
/// </summary>
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
public void RemoveCallbacks ( IPlayerActions instance )
{
if ( m_Wrapper . m_PlayerActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
/// <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="PlayerActions.AddCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
public void SetCallbacks ( IPlayerActions instance )
{
foreach ( var item in m_Wrapper . m_PlayerActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_PlayerActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
/// <summary>
/// Provides a new <see cref="PlayerActions" /> instance referencing this action map.
/// </summary>
public PlayerActions @Player = > new PlayerActions ( this ) ;
// UI
private readonly InputActionMap m_UI ;
private List < IUIActions > m_UIActionsCallbackInterfaces = new List < IUIActions > ( ) ;
private readonly InputAction m_UI_Navigate ;
private readonly InputAction m_UI_Submit ;
private readonly InputAction m_UI_Cancel ;
private readonly InputAction m_UI_Point ;
private readonly InputAction m_UI_Click ;
private readonly InputAction m_UI_ScrollWheel ;
private readonly InputAction m_UI_MiddleClick ;
private readonly InputAction m_UI_RightClick ;
private readonly InputAction m_UI_TrackedDevicePosition ;
private readonly InputAction m_UI_TrackedDeviceOrientation ;
/// <summary>
/// Provides access to input actions defined in input action map "UI".
/// </summary>
public struct UIActions
{
private @InputMaster m_Wrapper ;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public UIActions ( @InputMaster wrapper ) { m_Wrapper = wrapper ; }
/// <summary>
/// Provides access to the underlying input action "UI/Navigate".
/// </summary>
public InputAction @Navigate = > m_Wrapper . m_UI_Navigate ;
/// <summary>
/// Provides access to the underlying input action "UI/Submit".
/// </summary>
public InputAction @Submit = > m_Wrapper . m_UI_Submit ;
/// <summary>
/// Provides access to the underlying input action "UI/Cancel".
/// </summary>
public InputAction @Cancel = > m_Wrapper . m_UI_Cancel ;
/// <summary>
/// Provides access to the underlying input action "UI/Point".
/// </summary>
public InputAction @Point = > m_Wrapper . m_UI_Point ;
/// <summary>
/// Provides access to the underlying input action "UI/Click".
/// </summary>
public InputAction @Click = > m_Wrapper . m_UI_Click ;
/// <summary>
/// Provides access to the underlying input action "UI/ScrollWheel".
/// </summary>
public InputAction @ScrollWheel = > m_Wrapper . m_UI_ScrollWheel ;
/// <summary>
/// Provides access to the underlying input action "UI/MiddleClick".
/// </summary>
public InputAction @MiddleClick = > m_Wrapper . m_UI_MiddleClick ;
/// <summary>
/// Provides access to the underlying input action "UI/RightClick".
/// </summary>
public InputAction @RightClick = > m_Wrapper . m_UI_RightClick ;
/// <summary>
/// Provides access to the underlying input action "UI/TrackedDevicePosition".
/// </summary>
public InputAction @TrackedDevicePosition = > m_Wrapper . m_UI_TrackedDevicePosition ;
/// <summary>
/// Provides access to the underlying input action "UI/TrackedDeviceOrientation".
/// </summary>
public InputAction @TrackedDeviceOrientation = > m_Wrapper . m_UI_TrackedDeviceOrientation ;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get ( ) { return m_Wrapper . m_UI ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
public void Enable ( ) { Get ( ) . Enable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
public void Disable ( ) { Get ( ) . Disable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
public bool enabled = > Get ( ) . enabled ;
/// <summary>
/// Implicitly converts an <see ref="UIActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap ( UIActions set ) { return set . Get ( ) ; }
/// <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="UIActions" />
public void AddCallbacks ( IUIActions instance )
{
if ( instance = = null | | m_Wrapper . m_UIActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_UIActionsCallbackInterfaces . Add ( instance ) ;
@Navigate . started + = instance . OnNavigate ;
@Navigate . performed + = instance . OnNavigate ;
@Navigate . canceled + = instance . OnNavigate ;
@Submit . started + = instance . OnSubmit ;
@Submit . performed + = instance . OnSubmit ;
@Submit . canceled + = instance . OnSubmit ;
@Cancel . started + = instance . OnCancel ;
@Cancel . performed + = instance . OnCancel ;
@Cancel . canceled + = instance . OnCancel ;
@Point . started + = instance . OnPoint ;
@Point . performed + = instance . OnPoint ;
@Point . canceled + = instance . OnPoint ;
@Click . started + = instance . OnClick ;
@Click . performed + = instance . OnClick ;
@Click . canceled + = instance . OnClick ;
@ScrollWheel . started + = instance . OnScrollWheel ;
@ScrollWheel . performed + = instance . OnScrollWheel ;
@ScrollWheel . canceled + = instance . OnScrollWheel ;
@MiddleClick . started + = instance . OnMiddleClick ;
@MiddleClick . performed + = instance . OnMiddleClick ;
@MiddleClick . canceled + = instance . OnMiddleClick ;
@RightClick . started + = instance . OnRightClick ;
@RightClick . performed + = instance . OnRightClick ;
@RightClick . canceled + = instance . OnRightClick ;
@TrackedDevicePosition . started + = instance . OnTrackedDevicePosition ;
@TrackedDevicePosition . performed + = instance . OnTrackedDevicePosition ;
@TrackedDevicePosition . canceled + = instance . OnTrackedDevicePosition ;
@TrackedDeviceOrientation . started + = instance . OnTrackedDeviceOrientation ;
@TrackedDeviceOrientation . performed + = instance . OnTrackedDeviceOrientation ;
@TrackedDeviceOrientation . canceled + = instance . OnTrackedDeviceOrientation ;
}
/// <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="UIActions" />
private void UnregisterCallbacks ( IUIActions instance )
{
@Navigate . started - = instance . OnNavigate ;
@Navigate . performed - = instance . OnNavigate ;
@Navigate . canceled - = instance . OnNavigate ;
@Submit . started - = instance . OnSubmit ;
@Submit . performed - = instance . OnSubmit ;
@Submit . canceled - = instance . OnSubmit ;
@Cancel . started - = instance . OnCancel ;
@Cancel . performed - = instance . OnCancel ;
@Cancel . canceled - = instance . OnCancel ;
@Point . started - = instance . OnPoint ;
@Point . performed - = instance . OnPoint ;
@Point . canceled - = instance . OnPoint ;
@Click . started - = instance . OnClick ;
@Click . performed - = instance . OnClick ;
@Click . canceled - = instance . OnClick ;
@ScrollWheel . started - = instance . OnScrollWheel ;
@ScrollWheel . performed - = instance . OnScrollWheel ;
@ScrollWheel . canceled - = instance . OnScrollWheel ;
@MiddleClick . started - = instance . OnMiddleClick ;
@MiddleClick . performed - = instance . OnMiddleClick ;
@MiddleClick . canceled - = instance . OnMiddleClick ;
@RightClick . started - = instance . OnRightClick ;
@RightClick . performed - = instance . OnRightClick ;
@RightClick . canceled - = instance . OnRightClick ;
@TrackedDevicePosition . started - = instance . OnTrackedDevicePosition ;
@TrackedDevicePosition . performed - = instance . OnTrackedDevicePosition ;
@TrackedDevicePosition . canceled - = instance . OnTrackedDevicePosition ;
@TrackedDeviceOrientation . started - = instance . OnTrackedDeviceOrientation ;
@TrackedDeviceOrientation . performed - = instance . OnTrackedDeviceOrientation ;
@TrackedDeviceOrientation . canceled - = instance . OnTrackedDeviceOrientation ;
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="UIActions.UnregisterCallbacks(IUIActions)" />.
/// </summary>
/// <seealso cref="UIActions.UnregisterCallbacks(IUIActions)" />
public void RemoveCallbacks ( IUIActions instance )
{
if ( m_Wrapper . m_UIActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
/// <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="UIActions.AddCallbacks(IUIActions)" />
/// <seealso cref="UIActions.RemoveCallbacks(IUIActions)" />
/// <seealso cref="UIActions.UnregisterCallbacks(IUIActions)" />
public void SetCallbacks ( IUIActions instance )
{
foreach ( var item in m_Wrapper . m_UIActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_UIActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
/// <summary>
/// Provides a new <see cref="UIActions" /> instance referencing this action map.
/// </summary>
public UIActions @UI = > new UIActions ( this ) ;
private int m_KeyboardMouseSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme KeyboardMouseScheme
{
get
{
if ( m_KeyboardMouseSchemeIndex = = - 1 ) m_KeyboardMouseSchemeIndex = asset . FindControlSchemeIndex ( "Keyboard&Mouse" ) ;
return asset . controlSchemes [ m_KeyboardMouseSchemeIndex ] ;
}
}
private int m_GamepadSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme GamepadScheme
{
get
{
if ( m_GamepadSchemeIndex = = - 1 ) m_GamepadSchemeIndex = asset . FindControlSchemeIndex ( "Gamepad" ) ;
return asset . controlSchemes [ m_GamepadSchemeIndex ] ;
}
}
private int m_TouchSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme TouchScheme
{
get
{
if ( m_TouchSchemeIndex = = - 1 ) m_TouchSchemeIndex = asset . FindControlSchemeIndex ( "Touch" ) ;
return asset . controlSchemes [ m_TouchSchemeIndex ] ;
}
}
private int m_JoystickSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme JoystickScheme
{
get
{
if ( m_JoystickSchemeIndex = = - 1 ) m_JoystickSchemeIndex = asset . FindControlSchemeIndex ( "Joystick" ) ;
return asset . controlSchemes [ m_JoystickSchemeIndex ] ;
}
}
private int m_XRSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme XRScheme
{
get
{
if ( m_XRSchemeIndex = = - 1 ) m_XRSchemeIndex = asset . FindControlSchemeIndex ( "XR" ) ;
return asset . controlSchemes [ m_XRSchemeIndex ] ;
}
}
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
public interface IPlayerActions
{
/// <summary>
/// Method invoked when associated input action "Move" 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" />
void OnMove ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Look" 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" />
void OnLook ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Fire" 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" />
void OnFire ( InputAction . CallbackContext context ) ;
2026-02-24 11:02:55 +01:00
/// <summary>
/// Method invoked when associated input action "Jump" 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" />
void OnJump ( InputAction . CallbackContext context ) ;
2026-02-24 09:33:08 +01:00
}
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="UIActions.AddCallbacks(IUIActions)" />
/// <seealso cref="UIActions.RemoveCallbacks(IUIActions)" />
public interface IUIActions
{
/// <summary>
/// Method invoked when associated input action "Navigate" 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" />
void OnNavigate ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Submit" 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" />
void OnSubmit ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Cancel" 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" />
void OnCancel ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Point" 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" />
void OnPoint ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Click" 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" />
void OnClick ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "ScrollWheel" 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" />
void OnScrollWheel ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "MiddleClick" 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" />
void OnMiddleClick ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "RightClick" 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" />
void OnRightClick ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "TrackedDevicePosition" 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" />
void OnTrackedDevicePosition ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "TrackedDeviceOrientation" 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" />
void OnTrackedDeviceOrientation ( InputAction . CallbackContext context ) ;
}
}